.support-workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: calc(100dvh - 160px); min-height: 440px; background: #fff; border: 1px solid var(--line); }
.support-sidebar { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); background: #fafcfc; }
.support-sidebar-head, .support-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; min-height: 64px; padding: 14px 18px; gap: 12px; border-bottom: 1px solid var(--line); }
.support-sidebar h2, .support-header h2 { margin: 0; font-size: 16px; overflow-wrap: break-word; }
.support-search, #supportStart { min-width: 0; width: calc(100% - 28px); margin: 12px 14px 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
#supportStart { margin-bottom: 12px; }
.support-conversations { overflow-y: auto; min-height: 0; }
.support-contact { display: block; text-align: left; width: 100%; padding: 15px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.support-contact:hover, .support-contact.selected { background: #e6f4f1; }
.support-contact.selected { box-shadow: inset 3px 0 #0f766e; }
.support-contact-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.support-contact-top strong { min-width: 0; overflow-wrap: break-word; }
.support-badge { flex-shrink: 0; display: inline-flex; justify-content: center; align-items: center; min-width: 20px; height: 20px; border-radius: 12px; padding: 0 5px; background: #dc2626; color: #fff; font-size: 11px; }
.support-contact-preview { display: block; margin-top: 6px; color: #576a73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.support-contact-date { display: block; margin-top: 5px; color: #839198; font-size: 11px; overflow-wrap: break-word; }
.support-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
#supportConnection { color: #0f766e; font-size: 12px; flex-shrink: 0; }
.support-error { flex-shrink: 0; color: #9a3412; background: #fff7ed; padding: 10px 18px; overflow-wrap: break-word; }
.support-error:empty { display: none; }
.support-history { flex: 1; min-height: 0; overflow-y: auto; padding: 22px; background: #f5f7f8; overscroll-behavior: contain; }
.support-empty { padding: 45px 12px; text-align: center; color: #819098; }
.support-message-row { display: flex; justify-content: flex-start; margin: 0 0 20px; }
.support-message-row.mine { justify-content: flex-end; }
.support-message { max-width: min(80%, 660px); min-width: 0; }
.support-message-meta { color: #7c8b93; font-size: 11px; margin-bottom: 6px; }
.mine .support-message-meta, .support-receipt { text-align: right; }
.support-bubble { padding: 12px 15px; border: 1px solid #e0e7eb; border-radius: 8px; background: #fff; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; }
.mine .support-bubble { background: #dff2eb; border-color: #c6e5d8; }
.support-image-button { display: block; padding: 0; border: 0; border-radius: 8px; background: #e6ecef; }
.support-image { display: block; width: 260px; max-width: 100%; height: 205px; object-fit: contain; border: 1px solid #dbe3e7; border-radius: 8px; }
.support-receipt { margin-top: 6px; font-size: 11px; color: #7c8b93; }
.support-pending { color: #b45309; margin-top: 6px; font-size: 12px; overflow-wrap: break-word; }
.support-composer { flex-shrink: 0; padding: 12px 18px 18px; background: #fff; border-top: 1px solid var(--line); }
.support-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.support-tools .icon-btn, .support-sidebar-head .icon-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 7px; border: 0; background: transparent; }
.support-tools img, .support-sidebar-head img { width: 21px; height: 21px; }
.support-input-row { display: flex; align-items: center; gap: 12px; }
#supportDraft { min-width: 0; flex: 1; height: 72px; min-height: 72px; max-height: 140px; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 4px; background: #f8fafb; }
.support-send { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 6px; background: #0f766e; }
.support-send img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.support-send:disabled { background: #cbd5d9; cursor: default; }
.support-older { display: block; margin: 0 auto 18px; }
.support-media-dialog { width: min(780px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.support-media-dialog::backdrop { background: rgba(23, 33, 36, .5); }
.support-media-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.support-media-head h2 { font-size: 16px; margin: 0; }
.support-media-head .icon-btn { display: flex; padding: 6px; width: 32px; height: 32px; border: 0; background: transparent; }
.support-media-head img { width: 20px; height: 20px; }
.support-media-dialog video, .support-preview-image { display: block; width: 100%; max-height: 65dvh; object-fit: contain; }
.support-camera-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
#supportCameraError { color: #9a3412; }
@media (max-width: 1100px) { .support-workspace { grid-template-columns: 215px minmax(0, 1fr); } }
@media (max-width: 700px) { .support-workspace { grid-template-columns: 135px minmax(0, 1fr); height: 70dvh; } .support-contact, .support-header, .support-sidebar-head { padding: 12px; } .support-history { padding: 12px; } .support-composer { padding: 10px; } .support-message { max-width: 100%; } .support-header h2 { font-size: 14px; } #supportConnection { display: none; } }
