.customer-request-chat {
  position: fixed;
  inset: auto 24px 24px auto;
  width: min(480px, calc(100% - 48px));
  height: min(620px, calc(100dvh - 48px));
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: #edf2f5;
  box-shadow: 0 18px 66px #030811a6;
}
.customer-request-chat::backdrop { background: #040810ad; }
.request-chat-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.request-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.request-chat-head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.request-chat-close { min-height: 44px; flex: 0 0 auto; }
.request-chat-order, .request-chat-status, .request-chat-hint, .request-chat-count {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}
.request-chat-stream { overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; }
.request-chat-log { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.request-chat-message { justify-self: start; width: fit-content; max-width: 90%; padding: 9px 11px; border-radius: 11px; background: var(--raised); }
.request-chat-message[data-actor="customer"] { justify-self: end; background: #183651; }
.request-chat-message-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; color: var(--muted); font-size: .75rem; }
.request-chat-message-meta strong { color: #dceafe; }
.request-chat-text { margin: 4px 0 0; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.request-chat-stream > .request-chat-status:not(:empty) { margin-bottom: 10px; }
.request-chat-compose { display: grid; gap: 8px; padding: 11px 16px 14px; border-top: 1px solid var(--line); }
.request-chat-compose textarea { width: 100%; min-height: 58px; max-height: 120px; resize: vertical; font-size: 16px; }
.request-chat-actions { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; }
.request-chat-actions button { min-height: 44px; padding-inline: 18px; }
.request-chat-actions .request-chat-status { overflow-wrap: anywhere; }
.request-chat-count { white-space: nowrap; }
@media (max-width: 600px) {
  .customer-request-chat { inset: auto 0 0; width: 100%; height: 84dvh; max-width: none; border-radius: 16px 16px 0 0; }
  .request-chat-compose { padding-bottom: max(14px,env(safe-area-inset-bottom)); }
}
