.conversation-empty,
.chat-error {
  margin: 0;
  padding: 22px;
  color: #866f7a;
  text-align: center;
}

.match-overview-item {
  color: inherit;
}

.chat-avatar {
  width: 54px;
  height: 54px;
}

.match-overview-item .inbox-avatar img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4e6ec;
}

.chat-list {
  display: grid;
  align-content: start;
  gap: 5px;
}

.chat-avatar-wrap {
  width: 44px;
  height: 44px;
}

.chat-item img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4e6ec;
}

.chat-item span {
  display: grid;
  min-width: 0;
}

.chat-item small {
  overflow: hidden;
  color: #8b7882;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-message-meta {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  opacity: .7;
}

.chat-load-older {
  align-self: center;
  margin: 10px 0 0;
  padding: 7px 12px;
  font-size: 11px;
}

.chat-error:empty {
  display: none;
}

.chat-price-note {
  margin: 8px 0 0;
  color: #d9cbe8;
  font-size: 12px;
  font-weight: 800;
}

.chat-price-note[hidden] {
  display: none;
}

.chat-wallet-link {
  display: inline-flex;
  margin-left: 8px;
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.composer input:disabled,
.composer button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

/* Keep long conversations inside their card instead of letting them overlap the page footer. */
.chat-layout,
.chat-layout > .chat-list,
.chat-layout > .chat-window,
.chat-window,
.chat-messages {
  min-height: 0;
}

@media (min-width: 921px) {
  .chat-layout {
    height: min(780px, calc(100vh - 150px));
    min-height: 680px;
  }
}

.chat-window {
  overflow: hidden;
}

.chat-messages {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.composer,
.chat-price-note {
  flex: 0 0 auto;
}

/* Dreamland18 color alignment */
.conversation-empty,
.chat-error,
.chat-item small {
  color: #d9cbe8;
}

.match-overview-item,
.chat-item {
  color: #fff;
}

.match-overview-item .inbox-avatar img,
.chat-item img {
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

/* Chat actions, gift events, and safety dialogs */
.chat-person-head{position:relative;padding:14px!important;border-radius:18px}
.chat-person-head>span:nth-child(2){min-width:0}
.chat-person-head .chat-person-actions{display:flex;grid-template-columns:none;align-items:center;flex:0 0 auto;margin-left:auto;gap:8px}
.chat-icon-action{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font:20px/1 system-ui;cursor:pointer;transition:.2s transform,.2s background,.2s border-color}
.chat-icon-action:hover,.chat-icon-action:focus-visible{border-color:rgba(255,92,168,.65);background:rgba(255,92,168,.16);outline:0;transform:translateY(-1px)}
.chat-safety-action{font-size:18px}
.chat-gift-event{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px;max-width:min(92%,510px);margin:10px 0;padding:12px 14px;border:1px solid rgba(255,92,168,.34);border-radius:18px;background:linear-gradient(135deg,rgba(255,92,168,.18),rgba(122,77,255,.17));color:#fff;box-shadow:0 12px 28px rgba(0,0,0,.16)}
.chat-gift-event.out{margin-left:auto;background:linear-gradient(135deg,rgba(255,92,168,.28),rgba(223,47,129,.25))}
.chat-gift-event-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.13);font-size:25px}
.chat-gift-event-copy{display:grid;gap:2px;min-width:0}.chat-gift-event-copy b{font-size:13px;line-height:1.3}.chat-gift-event-copy span{color:#ffd3e8;font-size:12px;font-weight:800}.chat-gift-event-copy p{margin:5px 0 0;color:#fff;font-size:13px}.chat-gift-event .chat-message-meta{grid-column:2;margin:0;color:#eedcf1}
.chat-modal{position:fixed;z-index:250;inset:0;display:grid;place-items:center;padding:20px;background:rgba(6,2,13,.76);backdrop-filter:blur(8px)}
.chat-modal[hidden]{display:none}.chat-modal-card{width:min(560px,100%);max-height:min(760px,calc(100vh - 40px));overflow:auto;padding:24px;border:1px solid rgba(255,255,255,.18);border-radius:22px;background:linear-gradient(160deg,#251044,#120722);box-shadow:0 28px 80px rgba(0,0,0,.5);color:#fff}.chat-modal-card>header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.chat-modal-card h2{margin:4px 0 0;font-size:26px}.chat-modal-close{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:24px;cursor:pointer}.chat-modal-copy{margin:16px 0;color:#e4d7eb;font-size:14px;line-height:1.55}.chat-gift-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.chat-gift-option{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid rgba(255,255,255,.16);border-radius:14px;background:rgba(255,255,255,.06);color:#fff;text-align:left;cursor:pointer}.chat-gift-option:hover,.chat-gift-option[aria-pressed="true"]{border-color:#ff5ca8;background:rgba(255,92,168,.16)}.chat-gift-option-icon{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.11);font-size:21px}.chat-gift-option>span:last-child{display:grid;gap:2px;min-width:0}.chat-gift-option b{font-size:13px}.chat-gift-option small{color:#d7c8e0;font-size:11px}.chat-gift-note{display:grid;gap:6px;margin-top:14px;color:#eadff0;font-size:12px;font-weight:800}.chat-gift-note>span{color:#bbaac8;font-weight:500}.chat-gift-note input,.chat-gift-note select{width:100%;height:45px;padding:0 13px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.09);color:#fff;font:inherit;outline:0}.chat-gift-note select option{background:#1a0a30;color:#fff}.chat-gift-send{width:100%;margin-top:18px}.chat-safety-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.chat-safety-actions .btn{width:100%}.chat-block-button{background:linear-gradient(135deg,#ef476f,#c91c53)!important}
@media(max-width:620px){.chat-person-head{gap:8px}.chat-person-actions{gap:6px}.chat-icon-action{width:36px;height:36px;font-size:18px}.chat-gift-event{max-width:100%;grid-template-columns:42px minmax(0,1fr);padding:10px}.chat-gift-event-icon{width:40px;height:40px;font-size:21px}.chat-gift-picker{grid-template-columns:1fr}.chat-modal{padding:12px}.chat-modal-card{padding:20px;border-radius:18px}.chat-modal-card h2{font-size:22px}}
