.license-expired-card { max-width: 760px; margin-block: 1rem; }
.license-payment-qr { display: block; width: min(100%, 260px); max-height: 260px; margin-inline: auto; object-fit: contain; }
.license-chat-messages { display: flex; flex-direction: column; gap: .5rem; min-height: 120px; max-height: 260px; overflow-y: auto; padding: .75rem; background: #f5f7fa; border: 1px solid #dee2e6; border-radius: .5rem; }
.license-chat-message { display: flex; flex-direction: column; align-self: flex-start; max-width: 85%; gap: .15rem; padding: .55rem .7rem; border-radius: .65rem; background: #fff; overflow-wrap: anywhere; }
.license-chat-message.from-admin { align-self: flex-end; background: #e8f1ff; }
.license-chat-message-sender, .license-chat-message time { color: #6c757d; font-size: .7rem; }
.license-chat-message-text { white-space: pre-wrap; }
.license-admin-chat-card { display: grid; grid-template-columns: minmax(230px, 30%) 1fr; min-height: 520px; overflow: hidden; }
.license-chat-thread-list { overflow-y: auto; border-right: 1px solid #dee2e6; }
.license-chat-thread { display: block; width: 100%; padding: .85rem; border: 0; border-bottom: 1px solid #dee2e6; background: #fff; text-align: left; }
.license-chat-thread:hover, .license-chat-thread.active { background: #eef5ff; }
.license-chat-thread-preview { display: block; overflow: hidden; margin-top: .35rem; color: #495057; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.license-chat-thread-time { display: block; margin-top: .2rem; color: #6c757d; font-size: .7rem; }
.license-chat-conversation { display: flex; min-width: 0; flex-direction: column; }
.license-chat-conversation-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid #dee2e6; }
.license-chat-admin-messages { flex: 1; max-height: none; min-height: 320px; border: 0; border-radius: 0; }
.license-chat-compose { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid #dee2e6; }
.license-proof-upload { display: flex; gap: .5rem; }
.license-chat-attachment-link { display: inline-block; font-size: .85rem; overflow-wrap: anywhere; }
.license-chat-attachment-preview { display: block; width: min(100%, 220px); max-height: 180px; object-fit: contain; border-radius: .35rem; }
.license-chat-attachment { display: block; }
.license-chat-attachment img { width: min(100%, 220px); max-height: 180px; object-fit: contain; border-radius: .35rem; }
.license-chat-thread-time + .license-chat-thread-preview { margin-top: .35rem; }
@media (max-width: 640px) {
    .license-admin-chat-card { grid-template-columns: minmax(0, 1fr); }
    .license-chat-thread-list { max-height: 180px; border-right: 0; border-bottom: 1px solid #dee2e6; }
    .license-proof-upload { align-items: stretch; flex-direction: column; }
}
