/* Suporte: the customer's tickets with the Fenaky team. The list, the thread and the forms to open a ticket and reply. */
.support-page { width: min(100%, 820px); margin: 0 auto; padding: 8px 0 56px; }
.support-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.support-title { margin: 0 0 6px; font-family: var(--display); font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -.03em; overflow-wrap: anywhere; }
.support-lead { margin: 0; max-width: 60ch; color: var(--muted); line-height: 1.6; }
.support-back { margin: 0 0 20px; padding-inline: 0; }
.support-error { margin: 0 0 16px; color: var(--error); }

.support-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.support-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 8px; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.support-item:hover { border-color: #4a4552; background: var(--surface-raised); }
.support-item:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.support-item[data-unread=true] { border-color: #54436a; background: #1d1925; }
.support-item-text { display: grid; gap: 3px; min-width: 0; }
.support-item-text strong { overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.support-item[data-unread=true] .support-item-text strong { font-weight: 800; }
.support-item-text small { color: var(--muted); font-size: 12.5px; }
.support-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.support-status { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #2a2730; color: #d6cfe0; font-size: 12px; font-weight: 700; white-space: nowrap; }
.support-status[data-status=open] { background: #3a2e1a; color: #f2cf96; }
.support-status[data-status=answered] { background: var(--purple-subtle); color: #e1d4ff; }
.support-status[data-status=closed] { background: #26252b; color: var(--muted); }
.support-more { margin-top: 16px; }
.support-empty { display: grid; justify-items: center; gap: 6px; padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.support-empty .icon { width: 30px; height: 30px; color: var(--purple); }
.support-empty h2 { margin: 6px 0 0; font-family: var(--display); font-size: 20px; font-weight: 500; }
.support-empty p { max-width: 46ch; margin: 0; color: var(--muted); line-height: 1.6; }

.support-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; color: var(--muted); font-size: 13px; }
.support-thread { display: grid; gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; }
.support-message { display: grid; gap: 6px; width: fit-content; max-width: min(640px, 88%); padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.support-message[data-author=customer] { justify-self: end; border-color: #3d3350; background: #221d2d; }
.support-author { color: #c9bcd6; font-size: 12px; font-weight: 700; }
.support-message[data-author=support] .support-author { color: var(--purple); }
.support-body { margin: 0; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-message time { color: var(--muted); font-size: 11.5px; }

.support-form { display: grid; gap: 14px; }
.support-form label { display: grid; gap: 8px; color: #d6cfe0; font-size: 13px; font-weight: 600; }
.support-form input, .support-form textarea { width: 100%; padding: 12px; border: 1px solid #3a363f; border-radius: 8px; background: var(--surface-raised); color: var(--text); font: inherit; font-weight: 500; line-height: 1.6; caret-color: var(--purple); }
.support-form input { height: 46px; }
.support-form textarea { min-height: 120px; resize: vertical; }
.support-form input:hover, .support-form textarea:hover { border-color: #625471; }
.support-form input:focus-visible, .support-form textarea:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.support-form .support-error { margin: 0; }
.support-hint { margin: -4px 0 0; color: var(--muted); font-size: 12.5px; }
.support-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.support-confirm { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.support-reply { padding-top: 22px; border-top: 1px solid var(--line); }
.support-closed { display: grid; justify-items: start; gap: 12px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; }
.support-closed p { margin: 0; color: var(--muted); line-height: 1.6; }
.help-support { margin: 18px 0 0; color: var(--muted); }
.help-support a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 600px) {
  .support-title { font-size: 25px; }
  .support-head > .button { width: 100%; }
  .support-item { grid-template-columns: minmax(0, 1fr) 8px; row-gap: 10px; padding: 14px 16px; }
  .support-item .support-status { grid-row: 2; justify-self: start; }
  .support-item .support-dot { grid-column: 2; grid-row: 1; }
  .support-message { max-width: 100%; }
  .support-actions > .button { flex: 1 1 auto; }
}
