/* Shared conversation layout; inherits the dashboard light/dark palette. */
.uh-ticket-center { min-width: 0; width: 100%; }
.uh-ticket-new { margin-bottom: 18px; }
.uh-ticket-new > summary { cursor: pointer; font-weight: 700; padding-block: 8px; min-height: 44px; box-sizing: border-box; }
.uh-ticket-new[open] > summary { margin-bottom: 16px; }
.uh-ticket-center .uh-ticket-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.uh-ticket-center .uh-ticket-filter label { display: flex; flex: 1 1 160px; min-width: 0; flex-direction: column; gap: 6px; }
.uh-ticket-center .uh-ticket-filter input,
.uh-ticket-center .uh-ticket-filter select { min-width: 0; width: 100%; box-sizing: border-box; min-height: 44px; background: var(--uh-surface, #fff); color: var(--uh-ink, #111827); border: 1px solid var(--uh-line, #cbd5e1); }
.uh-ticket-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 15px; border-bottom: 1px solid var(--uh-line, #e2e8f0); }
.uh-ticket-summary > a { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; min-height: 44px; overflow-wrap: anywhere; }
.uh-ticket-summary small { color: var(--uh-muted, #475569); }
.uh-ticket-conversation { padding: 20px; margin-bottom: 20px; min-width: 0; background: var(--uh-surface, #fff); color: var(--uh-ink, #111827); border: 1px solid var(--uh-line, #e2e8f0); border-radius: 14px; overflow-wrap: anywhere; }
.uh-ticket-conversation .uh-ticket-message { background: var(--uh-bg, #f8fafc); color: var(--uh-ink, #111827); border: 1px solid var(--uh-line, #e2e8f0); padding: 14px; border-radius: 12px; margin-block: 12px; }
.uh-ticket-conversation .uh-ticket-message.is-admin { border-inline-start: 4px solid var(--uh-primary, #4f46e5); }
.uh-ticket-conversation .uh-ticket-message p { color: inherit; overflow-wrap: anywhere; white-space: normal; }
.uh-ticket-conversation .uh-ticket-message > div { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.uh-ticket-conversation .uh-ticket-message small { color: var(--uh-muted, #475569); }
.uh-ticket-conversation .uh-ticket-reply,
.uh-ticket-conversation .uh-admin-ticket-reply { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 20px; }
.uh-ticket-conversation form label { display: flex; flex-direction: column; gap: 6px; }
.uh-ticket-conversation textarea,
.uh-ticket-center textarea,
.uh-ticket-center input { width: 100%; min-width: 0; box-sizing: border-box; }
.uh-ticket-conversation textarea { background: var(--uh-surface, #fff); color: var(--uh-ink, #111827); border: 1px solid var(--uh-line, #cbd5e1); border-radius: 10px; padding: 12px; font: inherit; }
.uh-ticket-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-block: 20px; }
.uh-ticket-pagination a,
.uh-ticket-conversation .uh-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: 10px; background: var(--uh-primary, #4f46e5); color: #fff; text-decoration: none; box-sizing: border-box; }
.uh-ticket-attachment { display: inline-block; margin-inline-end: 12px; padding-block: 8px; overflow-wrap: anywhere; }
.uh-ticket-center :is(a, button, summary, input, textarea, select):focus-visible,
.uh-ticket-conversation :is(a, button, input, textarea):focus-visible { outline: 3px solid var(--uh-accent, #0ea5e9); outline-offset: 3px; }
@media (max-width: 600px) {
    .uh-ticket-summary { align-items: stretch; flex-direction: column; }
    .uh-ticket-center .uh-ticket-filter label { flex-basis: 100%; }
    .uh-ticket-conversation { padding: 14px; }
    .uh-ticket-conversation form button,
    .uh-ticket-center .uh-ticket-filter button { width: 100%; }
}
