.chat-compose { padding: 0; }
.chat-compose-tools, .chat-compose-bottom, .chat-compose-bottom > div, .chat-compose-bottom > span, .chat-media-action { display:flex; align-items:center; }
.chat-compose-tools { flex-wrap:wrap; gap:3px 6px; margin:0 -5px 8px; }
.chat-media-action { min-height:33px; padding:4px 8px; gap:6px; border:0; background:transparent; color:#40544b; border-radius:6px; cursor:pointer; font:inherit; font-weight:550; font-size:12px; }
.chat-media-action:hover, .chat-media-action:focus-visible { background:#edf4ef; color:#15563a; }
.chat-media-action .nav-icon { width:16px; height:16px; }
.chat-compose .inbox-compose-row { border-radius:9px; padding:2px 4px; }
.chat-compose .inbox-compose-row textarea { min-height:39px; max-height:11vh; resize:vertical; }
.chat-compose-bottom { justify-content:space-between; gap:6px; margin-top:8px; }
.chat-compose-bottom > div { gap:5px; }
.chat-compose-bottom > span { gap:5px; color:#596c60; font-size:11px; }
.chat-compose-bottom > span svg { width:12px; height:12px; }
.chat-compose-bottom .button { min-height:31px; padding:5px 11px; font-size:12px; }
.chat-prior,.chat-caption-error { margin:5px 0 8px; color:#6d5025; font-size:12px; }
.inbox-stream .fan-message-body.with-media { width:clamp(175px,27vw,292px); padding:4px; overflow:hidden; }
.chat-inline-media,.chat-shared-tile { display:block; width:100%; padding:0; background:transparent; border:0; text-align:left; cursor:zoom-in; color:inherit; overflow:hidden; white-space:normal; font:inherit; }
.chat-inline-media:disabled,.chat-shared-tile:disabled { opacity:1; cursor:default; }
.chat-media-frame { position:relative; display:block; overflow:hidden; background:#e6eae7; color:#526559; border-radius:7px; }
.chat-inline-media .chat-media-frame { height:clamp(120px,19vh,205px); }
.chat-media-frame > :is(img,video) { width:100%; height:100%; display:block; object-fit:cover; }
.chat-media-frame[data-round="true"] { border-radius:50%; aspect-ratio:1; width:auto; max-width:100%; margin-inline:auto; }
.chat-media-terms { display:inline-flex; align-items:center; gap:4px; position:absolute; bottom:7px; left:7px; max-width:calc(100% - 14px); padding:3px 7px; border-radius:5px; background:#14221ee8; color:white; font-size:10px; line-height:1.4; font-weight:600; }
.chat-media-terms svg { width:12px; height:12px; }
.chat-play-mark { display:grid; place-items:center; position:absolute; top:50%; left:50%; width:32px; height:32px; transform:translate(-50%,-50%); border-radius:50%; background:#10241ac9; color:white; }
.chat-media-title { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:600; line-height:1.3; }
.chat-inline-media .chat-media-title { padding:7px 7px 3px; }
.chat-media-missing { display:flex; height:100%; min-height:64px; align-items:center; justify-content:center; flex-direction:column; gap:4px; font-size:11px; }
.with-media .chat-bubble-caption { display:block; padding:3px 7px 5px; }
.fan-event-content > .chat-inline-media { max-width:270px; margin:10px 0 6px; }
.chat-shared { padding:14px; }
.chat-shared-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 10px; }
.chat-shared-grid > div { min-width:0; }
.chat-shared-tile .chat-media-frame { aspect-ratio:1.1; }
.chat-shared-tile .chat-media-title { margin-top:6px; }
.chat-shared-grid .chat-media-terms { left:4px; bottom:4px; max-width:calc(100% - 8px); padding:3px 4px; font-size:9px; }
.chat-shared-date { display:block; margin-top:2px; font-size:10px; color:#607066; }
.chat-shared > button { margin-top:12px; }
.chat-gallery-empty { padding:25px 5px; display:grid; justify-items:center; gap:9px; color:#63746b; text-align:center; font-size:12px; }
.chat-gallery-empty strong { color:#283d31; }
.chat-lightbox { inset:0; margin:auto; width:min(760px,94vw); max-height:90dvh; padding:0; border:1px solid #cdd8d1; border-radius:13px; background:white; color:#23352c; box-shadow:0 20px 70px #12261c38; }
.chat-lightbox::backdrop { background:rgb(23 35 29 / .55); }
.chat-viewer-header,.chat-viewer-caption { display:flex; gap:12px; padding:14px 18px; align-items:center; justify-content:space-between; }
.chat-viewer-header h2 { margin:0; font-size:17px; overflow-wrap:anywhere; }
.chat-viewer-header p { margin:3px 0 0; color:#637369; font-size:12px; }
.chat-viewer-caption { flex-wrap:wrap; justify-content:flex-start; font-size:12px; }
.chat-viewer-media { display:grid; place-items:center; min-height:120px; background:#16221d; }
.chat-viewer-media :is(img,video) { display:block; max-height:68dvh; max-width:100%; object-fit:contain; }
.inbox-thread { container-type:inline-size; }
@container (max-width: 600px) {
  .inbox-actions button[data-action] { min-width:32px; padding-inline:6px; }
  .inbox-actions button[data-action] > span { display:none; }
  .inbox-actions { gap:4px; }
}
@container (max-width: 400px) {
  .chat-compose-tools { gap:0; justify-content:space-between; margin-inline:-4px; }
  .chat-media-action { font-size:11px; padding-inline:4px; gap:3px; }
  .chat-media-action svg { width:14px; }
  .inbox-mode { font-size:10px; }
  .chat-compose-bottom .button { padding-inline:7px; }
}
@media(max-height:650px) {
  .inbox-composer { padding-top:5px; padding-bottom:5px; }
  .chat-compose-tools { margin-bottom:2px; }
  .chat-compose .inbox-compose-row textarea { height:38px; min-height:34px; }
}

.chat-offer-receipt { display:flex; justify-content:flex-end; align-items:center; gap:6px; color:#53665b; font-size:11px; list-style:none; }
.chat-offer-receipt svg { width:13px; height:13px; }
.chat-offer-receipt time { font-size:10px; color:#65756b; }

.chat-viewer-error { padding:24px; color:white; font-size:13px; }
