.support-tickets { padding: 28px 0; border-top: 1px solid var(--support-line); color: var(--text, #e7edf6); }
.support-tickets header, .support-dialog header, .support-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.support-tickets h2, .support-dialog h2 { font-size: 24px; margin: 0; overflow-wrap: anywhere; }
.support-tickets button, .support-dialog button, .support-escalation button { background: var(--support-action); color: white; border: 1px solid var(--support-action); border-radius: 6px; padding: 10px 14px; cursor: pointer; }
.support-tickets button:disabled, .support-dialog button:disabled { opacity: .6; cursor: wait; }
.support-dialog header h2 { min-width: 0; flex: 1; white-space: normal; overflow-wrap: anywhere; }
.support-dialog header button[data-close] { width: 36px; height: 36px; min-width: 0; min-height: 36px; flex: 0 0 36px; padding: 0; display: grid; place-items: center; font-size: 24px; line-height: 1; }
.support-table-wrap { overflow-x: auto; }
.support-pagination { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding-top: 16px; }
.support-tickets table { border-collapse: collapse; width: 100%; min-width: 560px; }
.support-tickets td, .support-tickets th { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--support-line); overflow-wrap: anywhere; }
.support-tickets small, .support-thread small { display: block; margin-top: 4px; }
.support-escalation { padding: 16px 0; }
.support-dialog { background: var(--support-dialog-surface); color: var(--support-dialog-content); border: 1px solid #79869b; border-radius: 8px; width: min(640px, calc(100% - 32px)); max-height: 90vh; padding: 24px; box-sizing: border-box; }
.support-dialog::backdrop { background: #0009; }
.support-dialog label { display: grid; gap: 8px; margin: 18px 0; }
.support-dialog input, .support-dialog textarea { box-sizing: border-box; width: 100%; background: var(--support-field-surface); color: var(--support-field-content); border: 1px solid var(--support-field-border); border-radius: 4px; padding: 10px; font: inherit; }
.support-dialog .support-check { display: flex; align-items: center; }
.support-check input { width: 18px; height: 18px; }
.support-thread { max-height: 320px; overflow: auto; }
.support-thread article { padding: 12px 0; border-bottom: 1px solid var(--support-line); }
.support-thread p { white-space: pre-wrap; overflow-wrap: anywhere; }
.support-dialog [data-error] { color: var(--support-error); }
.ticket-confirmation { position: fixed; right: 24px; bottom: 24px; z-index: 10050; max-width: min(440px, calc(100vw - 32px)); padding: 14px 18px; border: 1px solid var(--support-confirm-border); border-radius: 8px; background: var(--support-confirm-surface); color: #fff; box-shadow: 0 12px 28px #0005; font-weight: 700; line-height: 1.45; }
.help-typing p { display: flex; gap: 5px; align-items: center; min-height: 20px; }
.help-typing span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .45; animation: helpTyping 1s infinite ease-in-out; }
.help-typing span:nth-child(2) { animation-delay: .15s; }.help-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes helpTyping { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-4px); opacity: 1; } }
[data-theme="light"] .support-tickets, [data-theme="light"] .support-escalation { color: var(--support-dialog-content); }
@media(max-width: 500px) { .ticket-confirmation { right: 16px; bottom: 16px; } }
@media(max-width: 500px) { .support-dialog { padding: 16px; } .support-tickets h2, .support-dialog h2 { font-size: 20px; } }

/* Keep support actions compact and reserve the full workspace width for tickets. */
body.help-page .help-connect {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100%, 1380px) !important;
  margin: 20px auto 0 !important;
  padding: 14px 18px;
  border-top: 1px solid rgba(101, 143, 210, .3);
  border-bottom: 1px solid rgba(101, 143, 210, .3);
}
body.help-page .help-connect h2 {
  flex: 0 0 auto;
  margin: 0 !important;
  font-size: 18px !important;
  white-space: nowrap;
}
body.help-page .help-connect-grid {
  display: flex !important;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
body.help-page .help-connect-card,
body.help-page .help-connect-card.email-card {
  display: inline-flex !important;
  grid-column: auto !important;
  align-items: center;
  justify-content: flex-start;
  min-height: 0 !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}
body.help-page .help-connect-card:hover,
body.help-page .help-connect-card:focus-visible {
  background: rgba(30, 80, 145, .24) !important;
}
body.help-page .help-connect-icon {
  width: 30px !important;
  height: 30px !important;
  margin-right: 8px;
  font-size: 10px !important;
}
body.help-page .help-connect-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.help-page .help-connect-card strong {
  font-size: 14px !important;
  white-space: nowrap;
}
body.help-page .help-connect-card small {
  margin-left: 6px;
  color: #b8c4d8;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}
body.help-page .support-tickets {
  justify-self: stretch;
  width: min(100%, 1380px);
  margin: 4px auto 0;
  padding: 24px 0 12px;
}
body.help-page .support-tickets header {
  padding-bottom: 10px;
}
body.help-page .support-tickets table { min-width: 720px; }
@media (max-width: 760px) {
  body.help-page .help-connect { align-items: flex-start; flex-direction: column; gap: 10px; }
  body.help-page .help-connect-grid { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  body.help-page .help-connect-card small { display: none; }
  body.help-page .support-tickets table { min-width: 560px; }
}
