#androidSupportDialog:not([open]) { display: none; }
#profileScreen [data-profile-action="tickets"] strong { display: flex; align-items: center; flex-wrap: wrap; }
#profileScreen .android-ticket-reply-count { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; min-width: 21px; min-height: 21px; margin-left: 7px; padding: 2px 6px; border-radius: 999px; background: var(--accent); color: #211007; font-size: 11px; font-weight: 700; line-height: 1.3; }
#profileScreen .android-ticket-reply-count[hidden] { display: none; }
#androidSupportDialog[open] { display: flex; flex-direction: column; box-sizing: border-box; position: fixed; top: 50%; left: 50%; width: calc(100% - 24px); max-width: 560px; height: calc(100% - 32px); max-height: 740px; margin: 0; transform: translate(-50%,-50%); padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); overflow: hidden; }
#androidSupportDialog::backdrop { background: rgba(0,0,0,.45); }
#androidSupportDialog [hidden] { display: none !important; }
#androidSupportDialog > header { display: flex; align-items: center; flex: none; }
#androidSupportDialog h2 { flex: 1; margin: 0; font-size: 19px; line-height: 1.4; }
#androidSupportDialog h3 { margin: 0; font-size: 15px; }
#androidSupportDialog button { min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--text); padding: 8px 12px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
#androidSupportDialog button:disabled { opacity: .5; }
#androidSupportDialog svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#androidSupportDialog > header button { display: flex; align-items: center; justify-content: center; width: 44px; padding: 0; background: transparent; border-color: transparent; flex: none; }
#supportBack { margin-right: 5px; }
#androidSupportDialog button.support-primary { background: var(--accent); border-color: var(--accent); color: #211007; }
#supportStatus { margin: 8px 0; font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
#supportStatus:empty { display: none; }
#supportGuest p { color: var(--muted); font-size: 14px; line-height: 1.6; }
#supportListView { display: flex; flex-direction: column; min-height: 0; flex: 1; margin-top: 12px; }
.support-list-toolbar { display: flex; align-items: center; margin-bottom: 12px; flex: none; }
.support-list-toolbar h3 { flex: 1; }
#supportRefresh { display: flex; align-items: center; justify-content: center; width: 44px; padding: 0; margin-left: 7px; }
#supportTicketList { overflow: auto; min-height: 0; flex: 1; }
#androidSupportDialog .support-ticket { display: block; width: 100%; text-align: left; padding: 13px; margin-bottom: 10px; }
.support-ticket > strong { display: block; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.support-ticket > span { display: flex; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.support-ticket time { color: var(--muted); font-size: 10px; margin-left: 8px; }
.support-state { display: inline-block; padding: 3px 6px; border-radius: 4px; font-size: 10px; text-transform: capitalize; background: var(--panel-strong); color: var(--muted); }
.support-state.open { color: var(--accent); }
.support-state.answered { color: #07968a; }
.support-unread { color: #07968a; font-size: 10px; margin-left: auto; padding-left: 6px; }
.support-empty { color: var(--muted); font-size: 13px; }
#supportPagination { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; font-size: 12px; }
#supportCreateForm { overflow-y: auto; margin-top: 16px; }
#androidSupportDialog label { display: block; font-size: 12px; margin-bottom: 15px; }
#androidSupportDialog input, #androidSupportDialog textarea { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; margin-top: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--text); font: inherit; font-size: 16px; padding: 10px; resize: vertical; }
#androidSupportDialog input:focus, #androidSupportDialog textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
#supportCreateSend { width: 100%; }
#supportThreadView { display: flex; flex-direction: column; flex: 1; min-height: 0; margin-top: 12px; }
.support-thread-heading { flex: none; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
#supportThreadSubject { overflow-wrap: anywhere; line-height: 1.4; margin-bottom: 6px !important; }
.support-thread-actions { display: flex; align-items: center; justify-content: space-between; }
#androidSupportDialog #supportCloseTicket { display: flex; align-items: center; padding: 6px 10px; margin-left: 8px; flex: none; }
#supportCloseTicket svg { width: 15px; height: 15px; margin-right: 6px; }
#supportMessages { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 0; }
.support-message { box-sizing: border-box; width: fit-content; max-width: 86%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); margin-bottom: 12px; }
.support-message.user { margin-left: auto; border-bottom-right-radius: 3px; background: var(--accent-soft); }
.support-message.admin { margin-right: auto; border-bottom-left-radius: 3px; }
.support-message > header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.support-message strong { font-size: 12px; }
.support-message time { color: var(--muted); font-size: 9px; margin-left: 8px; }
.support-message p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: 13px; margin: 7px 0 0; }
#supportReplyForm { flex: none; border-top: 1px solid var(--line); padding-top: 10px; }
#supportReplyForm .support-reply-label { margin: 0; }
#supportReply { height: 64px; max-height: 120px; resize: none; margin-bottom: 8px; }
#supportReplySend { width: 100%; }
#supportClosed { font-size: 12px; color: var(--muted); }
#supportThreadSubject, .support-ticket > strong, .support-message p, #supportStatus { word-wrap: break-word; word-break: break-word; }
@media (max-height: 480px) {
  #supportCreateForm label { margin-bottom: 10px; }
  #supportMessage { height: 80px; min-height: 64px; resize: none; }
}
