/* Centro de ajuda (support.html): assistente, pedidos e perguntas frequentes. */
.hc { min-height: 100vh; }
.hc__inner { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 110px; }
@media (min-width: 900.99px) { body.has-desktop-sidebar main.hc { padding-left: var(--desktop-sidebar-layout-space, 108px); box-sizing: border-box; } }
.hc [hidden] { display: none !important; }
.hc a { color: inherit; }
.hc h1 { margin: 0 0 6px; font-size: clamp(1.55rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -.01em; color: var(--theme-text); }
.hc h2 { margin: 0; font-size: 1.06rem; font-weight: 800; color: var(--theme-text); }
.hc-lead { margin: 0 0 22px; max-width: 640px; color: var(--theme-text-muted); font-size: .96rem; line-height: 1.55; }
.hc-muted { color: var(--theme-text-muted); font-size: .86rem; line-height: 1.5; }
.hc-card { margin: 0 0 16px; padding: 18px; border-radius: 20px; border: 1px solid var(--theme-border); background: var(--theme-surface); color: var(--theme-text); }
.hc-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }

/* Buttons and fields. style.css gives every textarea a margin and 100% width. */
.hc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--theme-border); background: transparent; color: var(--theme-text); font: inherit; font-size: .87rem; font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, opacity .15s ease; }
.hc-btn:hover { background: var(--theme-surface-subtle); }
.hc-btn--primary { border-color: transparent; background: var(--brand-pink, #e61e4d); color: #fff; }
.hc-btn--primary:hover { background: var(--brand-pink-deep, #d70466); }
.hc-btn--ghost { border-color: transparent; }
.hc-btn--small { min-height: 32px; padding: 0 12px; font-size: .8rem; border-radius: 10px; }
.hc-btn[disabled] { opacity: .55; cursor: default; }
.hc-field { display: block; margin: 0 0 14px; }
.hc-field > span { display: block; margin: 0 0 6px; font-size: .84rem; font-weight: 700; color: var(--theme-text); }
.hc-field > small { display: block; margin: 6px 0 0; color: var(--theme-text-muted); font-size: .78rem; line-height: 1.45; }
.hc-input, .hc textarea.hc-input, .hc select.hc-input { display: block; width: 100%; margin: 0; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--theme-border); background: var(--theme-surface-muted); color: var(--theme-text); font: inherit; font-size: .92rem; line-height: 1.45; box-sizing: border-box; transition: border-color .15s ease, box-shadow .15s ease; }
.hc textarea.hc-input { min-height: 140px; resize: vertical; }
.hc-input:focus { outline: none; border-color: var(--brand-pink, #e61e4d); box-shadow: 0 0 0 3px rgba(230, 30, 77, .14); }
.hc select.hc-input { color-scheme: inherit; }
.hc select.hc-input option { background: var(--theme-surface); color: var(--theme-text); }
.hc-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hc-row > .hc-field { flex: 1 1 220px; }
.hc-feedback { min-height: 1.2em; margin: 8px 0 0; font-size: .85rem; color: var(--theme-text-muted); }
.hc-feedback.is-error { color: #dc2626; }

/* Assistant */
.hc-ai { position: relative; overflow: hidden; }
.hc-ai__head { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; }
.hc-ai__badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, #e61e4d, #d70466); color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: .04em; }
.hc-ai__head p { margin: 2px 0 0; color: var(--theme-text-muted); font-size: .86rem; line-height: 1.45; }
.hc-ai__log { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; margin: 0 0 10px; }
.hc-ai__log:empty { display: none; }
.hc-bubble { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.hc-bubble--user { align-self: flex-end; background: var(--brand-pink, #e61e4d); color: #fff; border-bottom-right-radius: 6px; }
.hc-bubble--ai { align-self: flex-start; background: var(--theme-surface-subtle); color: var(--theme-text); border-bottom-left-radius: 6px; }
.hc-bubble--typing { color: var(--theme-text-muted); }
.hc-bubble__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; white-space: normal; }
.hc-bubble__links a { display: inline-flex; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--theme-border); background: var(--theme-surface); font-size: .78rem; font-weight: 700; text-decoration: none; }
.hc-ai__followup { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; color: var(--theme-text-muted); }
.hc-ai__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.hc-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--theme-border); background: transparent; color: var(--theme-text); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.hc-chip:hover { border-color: rgba(230, 30, 77, .45); background: rgba(230, 30, 77, .05); }
.hc-chip[aria-pressed="true"] { border-color: var(--brand-pink, #e61e4d); background: rgba(230, 30, 77, .08); }
.hc-ai__form { display: flex; gap: 8px; align-items: flex-end; }
.hc .hc-ai__form textarea { flex: 1 1 auto; min-height: 46px; max-height: 160px; resize: none; }
.hc-ai__fine { margin: 8px 0 0; color: var(--theme-text-soft); font-size: .74rem; line-height: 1.45; }

/* Topics */
.hc-topics { margin: 0 0 16px; }
.hc-topics > h2 { margin: 6px 0 10px; }
.hc-topics__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.hc-topic { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 16px; border: 1px solid var(--theme-border); background: var(--theme-surface); color: var(--theme-text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.hc-topic:hover { border-color: rgba(230, 30, 77, .45); transform: translateY(-1px); }
.hc-topic__icon { flex: 0 0 auto; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 11px; background: rgba(230, 30, 77, .09); color: var(--brand-pink, #e61e4d); }
.hc-topic strong { display: block; font-size: .9rem; font-weight: 750; }
.hc-topic small { display: block; margin-top: 2px; color: var(--theme-text-muted); font-size: .77rem; line-height: 1.4; }

/* Ticket list */
.hc-tabs { display: flex; gap: 4px; margin: 0 0 8px; border-bottom: 1px solid var(--theme-border); }
.hc-tab { position: relative; padding: 9px 12px; border: 0; background: none; color: var(--theme-text-muted); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.hc-tab.is-active { color: var(--theme-text); }
.hc-tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand-pink, #e61e4d); }
.hc-tab em { font-style: normal; color: var(--theme-text-soft); font-weight: 600; }
.hc-list { list-style: none; margin: 0; padding: 0; }
.hc-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; width: 100%; padding: 13px 10px; border: 0; border-top: 1px solid var(--theme-border); background: none; color: var(--theme-text); font: inherit; text-align: left; cursor: pointer; border-radius: 12px; transition: background-color .15s ease; }
.hc-list li:first-child .hc-item { border-top: 0; }
.hc-item:hover { background: var(--theme-surface-subtle); }
.hc-item__title { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .92rem; font-weight: 750; }
.hc-item__title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-item__num { flex: 0 0 auto; color: var(--theme-text-soft); font-weight: 700; font-size: .8rem; }
.hc-item__preview { grid-column: 1 / 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--theme-text-muted); font-size: .82rem; }
.hc-item__side { grid-column: 2 / 3; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hc-item__time { color: var(--theme-text-soft); font-size: .75rem; white-space: nowrap; }
.hc-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-pink, #e61e4d); }
.hc-empty { padding: 26px 10px; text-align: center; color: var(--theme-text-muted); font-size: .88rem; line-height: 1.5; }

/* Status pills — one colour per state, the same on both sides of the desk. */
.hc-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 750; white-space: nowrap; border: 1px solid transparent; }
.hc-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hc-pill--new { color: #2563eb; background: rgba(37, 99, 235, .1); }
.hc-pill--open { color: #b45309; background: rgba(245, 158, 11, .14); }
.hc-pill--pending { color: #e61e4d; background: rgba(230, 30, 77, .1); }
.hc-pill--on_hold { color: #6b7280; background: rgba(107, 114, 128, .12); }
.hc-pill--solved { color: #15803d; background: rgba(22, 163, 74, .12); }
.hc-pill--closed { color: var(--theme-text-soft); background: var(--theme-surface-subtle); }
:root[data-theme=night] .hc-pill--new { color: #93b4ff; }
:root[data-theme=night] .hc-pill--open { color: #fbbf24; }
:root[data-theme=night] .hc-pill--pending { color: #ff6b8e; }
:root[data-theme=night] .hc-pill--solved { color: #4ade80; }

/* FAQ */
.hc-faq__search { margin: 0 0 10px; }
.hc-faq details { border-top: 1px solid var(--theme-border); }
.hc-faq details:first-of-type { border-top: 0; }
.hc-faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 13px 4px; font-size: .9rem; font-weight: 700; cursor: pointer; list-style: none; }
.hc-faq summary::-webkit-details-marker { display: none; }
.hc-faq summary::after { content: "+"; flex: 0 0 auto; color: var(--theme-text-soft); font-weight: 600; transition: transform .15s ease; }
.hc-faq details[open] summary::after { transform: rotate(45deg); }
.hc-faq__answer { padding: 0 4px 14px; color: var(--theme-text-muted); font-size: .88rem; line-height: 1.6; white-space: pre-line; }
.hc-faq__answer a { color: var(--theme-text); font-weight: 700; text-decoration: underline; }

/* New ticket */
.hc-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.hc-suggest { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--theme-surface-subtle); }
.hc-suggest > strong { display: block; margin: 0 0 6px; font-size: .82rem; }
.hc-suggest .hc-faq details { border-color: var(--theme-border); }
.hc-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.hc-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 6px 5px 10px; border-radius: 10px; border: 1px solid var(--theme-border); font-size: .78rem; }
.hc-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.hc-file button { width: 22px; height: 22px; border: 0; border-radius: 6px; background: var(--theme-surface-subtle); color: var(--theme-text); cursor: pointer; font-size: .9rem; line-height: 1; }
.hc-attach { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hc-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hc-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: .86rem; line-height: 1.45; cursor: pointer; }
.hc-check input { margin: 3px 0 0; flex: 0 0 auto; }
.hc-diag { margin: 0 0 14px; font-size: .78rem; color: var(--theme-text-muted); }
.hc-diag summary { cursor: pointer; font-weight: 700; }
.hc-diag pre { margin: 8px 0 0; padding: 10px; border-radius: 10px; background: var(--theme-surface-subtle); white-space: pre-wrap; word-break: break-all; font: .74rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hc-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: rgba(230, 30, 77, .07); font-size: .84rem; line-height: 1.5; }
.hc-success { text-align: center; padding: 34px 18px; }
.hc-success__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; margin: 0 0 12px; border-radius: 50%; background: rgba(22, 163, 74, .12); color: #16a34a; font-size: 1.6rem; }

/* Ticket view */
.hc-t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.hc-t-head h1 { margin: 2px 0 6px; font-size: clamp(1.3rem, 3vw, 1.65rem); }
.hc-t-num { color: var(--theme-text-soft); font-size: .84rem; font-weight: 700; }
.hc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; color: var(--theme-text-muted); font-size: .82rem; }
.hc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 16px; }
.hc-step { padding-top: 9px; border-top: 3px solid var(--theme-border); color: var(--theme-text-soft); font-size: .78rem; font-weight: 700; }
.hc-step.is-done { border-color: var(--brand-pink, #e61e4d); color: var(--theme-text); }
.hc-step small { display: block; font-weight: 600; color: var(--theme-text-muted); }
.hc-banner { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; font-size: .86rem; line-height: 1.5; background: var(--theme-surface-subtle); }
.hc-banner--action { background: rgba(230, 30, 77, .09); }
.hc-banner--ok { background: rgba(22, 163, 74, .1); }
.hc-timeline { display: flex; flex-direction: column; gap: 14px; margin: 0 0 16px; }
.hc-msg { display: flex; gap: 10px; align-items: flex-start; }
.hc-msg--me { flex-direction: row-reverse; }
.hc-avatar { flex: 0 0 auto; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--theme-surface-subtle); color: var(--theme-text); font-size: .78rem; font-weight: 800; overflow: hidden; }
.hc-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 5px; box-sizing: border-box; }
.hc-msg__body { max-width: min(560px, 82%); }
.hc-msg__who { margin: 0 0 3px; font-size: .75rem; color: var(--theme-text-soft); font-weight: 700; }
.hc-msg--me .hc-msg__who { text-align: right; }
.hc-msg__bubble { padding: 11px 14px; border-radius: 16px; background: var(--theme-surface-subtle); font-size: .9rem; line-height: 1.58; white-space: pre-wrap; word-wrap: break-word; }
.hc-msg--me .hc-msg__bubble { background: rgba(230, 30, 77, .1); }
.hc-msg__bubble a { text-decoration: underline; }
.hc-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hc-att-img { display: block; width: 120px; height: 90px; border-radius: 10px; overflow: hidden; background: var(--theme-border); }
.hc-att-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-att-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--theme-border); font-size: .78rem; font-weight: 700; text-decoration: none; }
.hc-event { align-self: center; max-width: 90%; color: var(--theme-text-soft); font-size: .76rem; text-align: center; }
.hc-composer { padding-top: 14px; border-top: 1px solid var(--theme-border); }
.hc-composer__row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }
.hc .hc-composer textarea.hc-input { min-height: 96px; }
.hc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.hc-stars { display: flex; gap: 4px; margin: 8px 0 10px; }
.hc-star { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--theme-surface-subtle); color: var(--theme-text-soft); font-size: 1.3rem; cursor: pointer; transition: color .12s ease, background-color .12s ease; }
.hc-star.is-on { color: #f5a524; background: rgba(245, 165, 36, .14); }
.hc-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.hc-contact > div { padding: 14px; border-radius: 16px; border: 1px solid var(--theme-border); font-size: .84rem; line-height: 1.5; color: var(--theme-text-muted); }
.hc-contact strong { display: block; color: var(--theme-text); font-size: .88rem; margin-bottom: 2px; }
.hc-skeleton { height: 58px; margin: 6px 0; border-radius: 12px; background: var(--theme-surface-subtle); animation: hc-pulse 1.2s ease-in-out infinite; }
@keyframes hc-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .hc-skeleton { animation: none; } .hc-topic:hover { transform: none; } }
@media (max-width: 560px) {
  .hc__inner { width: calc(100% - 24px); padding-top: 18px; }
  .hc-card { padding: 15px; border-radius: 18px; }
  .hc-item__side { grid-row: auto; grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .hc-item { grid-template-columns: 1fr; }
  .hc-msg__body { max-width: 86%; }
}
