/* Ajuda do app (hl-) e opiniões no admin (fb-). */
/* Ajuda · "Falar com a Hermelo" (redesenho de 31/10/2026). Só tokens, nenhum hex. Prefixo hl- (ajustes.css já usa aj-).
   Celular (< 768 px): coluna única com barra fixa de envio. De 768 a 1279 px: coluna única de até 720 px, sem barra fixa.
   Duas colunas (440 px + resto) só a partir de 1280 px. A ordem do DOM é a ordem visual: no celular contato, mensagens, enviar, resto; a partir de 1280 px help.js agrupa os nós em duas colunas
   independentes (esquerda: contato e enviar; direita: mensagens e resto), então o Tab segue as colunas e um bloco nunca é afastado pela altura
   do outro. No celular a posição vem das áreas do grid (sem order nem display: contents). */
.hl { --hl-bar: 76px; --hl-bar-b: 0px; padding: var(--sp-2) 0 var(--sp-6); max-width: 100%; color: var(--ink); }
.hl [hidden] { display: none !important; }
.hl .btn { box-sizing: border-box; max-width: 100%; }
.hl.is-sent .hl-bar { display: none; }
.hl.is-sent { padding-bottom: var(--sp-6); }
.hl.has-note { --hl-bar: 132px; }
.hl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.hl-head h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; text-wrap: balance; }
.hl-lede { margin: var(--sp-1) 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.hl-tag { flex: none; display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--sp-3); border-radius: 14px; background: var(--brand-soft); color: var(--brand-text); font-size: 13px; font-weight: 700; margin-top: var(--sp-1); }
.hl-anchor { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: 44px; padding: 0; border: 0; background: none; color: var(--brand-text); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.hl-cols { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); grid-template-areas: "contact" "msgs" "form" "extra"; }
.hl-contact { grid-area: contact; } .hl-msgs { grid-area: msgs; } .hl-form { grid-area: form; } .hl-extra { grid-area: extra; }
.hl-msgs, .hl-faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); align-content: start; min-width: 0; }
.hl-extra { display: grid; gap: var(--sp-4); align-content: start; min-width: 0; }
.hl-card { display: grid; gap: var(--sp-3); padding: var(--sp-4); background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 12px; min-width: 0; }
.hl-sec-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--sp-3); margin: 0; }
.hl-sec-title h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.hl-count { font-size: 14px; color: var(--ink-2); }
/* Foco programático (título, item da lista, caixas de aviso): sem anel para quem usa o mouse ou o toque; com anel para quem usa o teclado (data-kb, como em Serviços). */
.hl:not([data-kb]) :is(h2, li, .hl-box):focus { outline: none; }
.hl[data-kb] :is(h2, li, .hl-box):focus { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.hl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hl :is(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
/* contato */
.hl-contact { border: 1.5px solid var(--rule-strong); }
.hl-who { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.hl-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.hl-who strong { display: block; font-size: 16px; font-weight: 700; }
.hl-who small { display: block; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hl-contact .btn, .hl-form .btn, .hl-state .btn, .hl-bar .btn, .hl-all { min-height: 48px; justify-content: center; }
.hl-wa { width: 100%; }
.hl-mail { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--rule-soft); }
.hl-mail .hl-who { flex: 1 1 100%; }
.hl-mail-actions { position: relative; flex: 1 1 100%; display: flex; }
.hl-mail-actions .btn { flex: 1; min-height: 48px; }
.hl-mail .hl-mailbtn[aria-expanded="true"] { background: var(--brand-soft); border-color: var(--brand); }
.hl-menu { display: grid; padding: var(--sp-1); border-radius: 12px; background: var(--surface); }
.hl-menu a, .hl-menu button { display: flex; align-items: center; gap: var(--sp-3); min-height: 48px; padding: 0 var(--sp-3); border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.hl-menu a + a, .hl-menu a + button { border-top: 1px solid var(--rule-strong); }
.hl-menu svg { color: var(--ink-mute); flex: none; }
.hl-menu a:hover, .hl-menu button:hover { background: var(--surface-2); }
.hl-menu.is-pop { position: absolute; right: 0; top: calc(100% + var(--sp-1)); z-index: 40; width: 360px; max-width: calc(100vw - 2 * var(--sp-4)); border: 1.5px solid var(--rule-strong); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
/* mensagens */
.hl-list { margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 12px; overflow: hidden; }
.hl-msg { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-4); border-top: 1px solid var(--rule-soft); }
.hl-msg:first-child { border-top: 0; }
.hl-msg-head { display: flex; align-items: center; gap: var(--sp-2); }
.hl-kind { flex: none; font-size: 13px; font-weight: 700; padding: 2px var(--sp-2); border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.hl-about { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink-2); }
.hl-status { flex: none; display: inline-flex; align-items: center; gap: var(--sp-1); min-height: 24px; padding: 0 var(--sp-2); border-radius: 12px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.hl-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hl-status.is-in_progress { background: var(--attn-bg); color: var(--attn); }
.hl-status.is-done { background: var(--ok-bg); color: var(--ok); }
.hl-msg p { margin: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; text-wrap: pretty; }
.hl-msg small { font-size: 14px; color: var(--ink-mute); }
.hl-reply { display: grid; gap: var(--sp-1); padding: var(--sp-3) var(--sp-4); border-radius: 10px; background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.hl-reply b { display: flex; align-items: center; gap: var(--sp-2); font-size: 14px; color: var(--brand-text); }
.hl-reply p { color: var(--ink); font-size: 16px; line-height: 1.5; }
.hl-msg.is-new { background: var(--brand-soft); }
.hl-msg.is-new small, .hl-msg.is-new .hl-about { color: var(--ink-2); }
.hl .hl-all { width: 100%; min-height: 48px; margin-top: var(--sp-3); }
/* estados */
.hl-state { display: grid; justify-items: center; gap: var(--sp-2); padding: var(--sp-5) var(--sp-4); text-align: center; background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 12px; }
.hl-state > svg { color: var(--ink-mute); }
.hl-state h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.hl-state p { margin: 0; max-width: 36ch; font-size: 14px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.hl-state .btn { margin-top: var(--sp-2); min-width: 200px; }
.hl-state.is-error { background: var(--bad-bg); border-color: transparent; }
.hl-state.is-error > svg, .hl-state.is-error h3 { color: var(--bad); }
.hl-skel { --hl-skel-h: 538px; min-height: var(--hl-skel-h); background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 12px; overflow: hidden; }
.hl-skel-row { display: grid; align-content: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--rule-soft); height: calc(var(--hl-skel-h) / 3); box-sizing: border-box; }
.hl-skel-row:first-child { border-top: 0; }
.hl-skel i { display: block; height: 14px; border-radius: 7px; background: var(--rule-strong); opacity: .55; animation: hl-pulse 1.4s ease-in-out infinite; }
.hl-skel-row i:nth-child(1) { width: 34%; height: 18px; border-radius: 6px; }
.hl-skel-row i:nth-child(2) { width: 92%; }
.hl-skel-row i:nth-child(3) { width: 60%; }
@keyframes hl-pulse { 50% { opacity: .3; } }
/* formulário */
.hl-form h2 { margin: 0; font-size: 18px; font-weight: 700; }
.hl-fields { display: grid; gap: var(--sp-3); }
.hl-kinds-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.hl-kinds { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.hl-kinds label { display: block; flex: 1 1 auto; }
.hl-kinds input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hl-kinds span { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: var(--sp-1); min-height: 48px; padding: 0 var(--sp-2); border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; }
.hl-kinds span svg { display: none; flex: none; width: 16px; min-width: 16px; height: 16px; }
.hl-kinds input:checked + span { background: var(--brand-soft); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand-text); font-weight: 700; }
.hl-kinds input:checked + span svg { display: inline-block; }
.hl-kinds input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.hl-kinds input:disabled + span { background: var(--surface-2); color: var(--ink-2); cursor: progress; }
.hl-field { display: grid; gap: var(--sp-1); }
.hl-field > label { font-size: 14px; font-weight: 600; }
.hl-field > small { font-size: 14px; color: var(--ink-mute); line-height: 1.4; }
.hl-input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 var(--sp-3); border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.hl-input.is-area { display: block; min-height: 132px; padding-block: var(--sp-3); line-height: 1.45; resize: vertical; overflow-wrap: anywhere; }
.hl-input::placeholder { color: var(--ink-mute); opacity: 1; }
.hl-input[aria-invalid="true"] { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.hl-input:disabled { background: var(--surface-2); color: var(--ink-2); -webkit-text-fill-color: var(--ink-2); opacity: 1; cursor: progress; }
.hl-select { position: relative; }
.hl-select select { appearance: none; background-image: none; padding-right: 44px; }
.hl-select .select-menu-trigger { padding-right: 44px; text-align: left; }
.hl-select .select-menu-trigger::after { display: none; }
.hl-select svg { position: absolute; right: var(--sp-3); top: 50%; transform: translateY(-50%); color: var(--ink-mute); pointer-events: none; }
.hl-err { display: flex; gap: var(--sp-2); align-items: flex-start; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--bad); }
.hl-err svg { flex: none; margin-top: 2px; }
.hl-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: start; padding: var(--sp-4); border-radius: 12px; }
.hl-box h3 { margin: 0; font-size: 16px; font-weight: 700; }
.hl-box p { margin: var(--sp-1) 0 0; font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.hl-box .btn { margin-top: var(--sp-3); min-height: 44px; }
.hl-box.is-ok { background: var(--ok-bg); color: var(--ok); }
.hl-box.is-bad { background: var(--bad-bg); color: var(--bad); }
.hl-box.is-ok p, .hl-box.is-bad p { color: var(--ink); }
.hl-box > svg { margin-top: 2px; }
.hl-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: hl-rot .8s linear infinite; }
@keyframes hl-rot { to { transform: rotate(360deg); } }
.hl-submit { display: none; }
.hl [aria-disabled="true"].btn { background: var(--btn-fill); border-color: var(--btn-fill); color: var(--btn-ink); opacity: 1; cursor: progress; }
/* seu papel */
.hl-role { background: var(--brand-soft); border-color: transparent; }
.hl-role h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--brand-text); }
.hl-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-4); counter-reset: s; }
.hl-steps li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--sp-3); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.hl-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--brand-text); font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--brand); }
.hl-steps li > div { display: grid; }
.hl-steps li > span { display: block; }
.hl-steplink { display: flex; align-items: center; gap: var(--sp-1); min-height: 44px; margin-block: -4px -10px; color: var(--brand-text); font-weight: 700; text-decoration: underline; }
.hl-steplink svg { transform: rotate(-90deg); }
.hl-foot { margin: 0; font-size: 14px; color: var(--ink-2); text-wrap: pretty; }
/* perguntas */
.hl-faq { background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 12px; overflow: hidden; }
.hl-group { display: flex; align-items: center; min-height: 36px; margin: 0; padding: 0 var(--sp-4); background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hl-qa { border-top: 1px solid var(--rule-soft); }
.hl-group + .hl-qa { border-top: 0; }
.hl-qa summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 52px; padding: var(--sp-2) var(--sp-4); font-size: 16px; font-weight: 600; line-height: 1.35; list-style: none; cursor: pointer; }
.hl-qa summary::-webkit-details-marker { display: none; }
.hl .hl-qa summary:focus-visible { outline-offset: -3px; }
.hl-qa summary svg { flex: none; color: var(--ink-mute); transition: transform .15s; }
.hl-qa[open] > summary svg { transform: rotate(180deg); }
.hl-qa-body { display: grid; gap: var(--sp-2); padding: 0 var(--sp-4) var(--sp-4); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.hl-qa-body p { margin: 0; }
.hl-qa-body details summary { display: flex; align-items: center; min-height: 44px; padding: 0; font-size: 14px; color: var(--brand-text); font-weight: 700; cursor: pointer; }
.hl-qa-body ul { margin: 0; padding-left: var(--sp-4); display: grid; gap: var(--sp-2); }
/* barra fixa (celular) */
.hl { padding-bottom: calc(var(--hl-bar) + var(--hl-bar-b) + var(--sp-6)); }
.hl-bar { position: fixed; left: 0; right: 0; bottom: var(--hl-bar-b); z-index: 31; box-sizing: border-box; min-height: var(--hl-bar); padding: var(--sp-4) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1.5px solid var(--rule-strong); display: flex; flex-direction: column; gap: var(--sp-2); }
html[data-role="professional"] .hl-bar { padding-bottom: var(--sp-4); }
.hl-bar .btn { width: 100%; }
.hl-bar-note { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 44px; padding: 0; border: 0; background: none; color: var(--bad); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 767.98px) {
  html:has(.hl) { scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  html:has(.hl.has-note) { scroll-padding-bottom: calc(148px + env(safe-area-inset-bottom)); }
  html[data-role="professional"]:has(.hl) { scroll-padding-bottom: calc(161px + env(safe-area-inset-bottom)); }
  html[data-role="professional"]:has(.hl.has-note) { scroll-padding-bottom: calc(217px + env(safe-area-inset-bottom)); }
  .hl-kinds span { padding: 0 var(--sp-2); }
}
/* folha de e-mail (celular) */
.hl-scrim { position: fixed; inset: 0; z-index: 950; background: rgba(0, 0, 0, .45); }
.hl-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 951; box-sizing: border-box; padding: var(--sp-4) var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom)); background: var(--surface); color: var(--ink); border: 1.5px solid var(--rule-strong); border-radius: 16px 16px 0 0; display: grid; gap: var(--sp-3); max-height: 90vh; overflow: auto; }
.hl-sheet:focus { outline: none; }
.hl-sheet h2 { margin: 0; font-size: 18px; font-weight: 700; }
.hl-sheet-sub { margin: 0; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.hl-sheet .hl-menu { padding: 0; }
.hl-sheet .btn { min-height: 48px; justify-content: center; }
.hl-sheet :is(a, button):focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
@media (min-width: 768px) {
  .hl { max-width: 720px; margin-inline: auto; padding-bottom: var(--sp-6); }
  .hl-bar, .hl-layer { display: none; }
  .hl-submit { display: inline-flex; }
  .hl-mail { flex-wrap: nowrap; }
  .hl-mail .hl-who { flex: 1; }
  .hl-mail-actions { flex: none; }
  .hl-mail-actions .btn { flex: none; min-height: 44px; }
  .hl-skel { --hl-skel-h: 448px; }
  .hl-qa summary:hover { background: var(--surface-2); }
}
@media (min-width: 1280px) {
  .hl { max-width: 1120px; margin-inline: 0; }
  .hl-cols { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); grid-template-areas: none; gap: var(--sp-5); align-items: start; }
  .hl-colL > *, .hl-colR > * { grid-area: auto; }
  .hl-colL, .hl-colR { display: grid; gap: var(--sp-4); align-content: start; min-width: 0; }
  .hl-colL { position: sticky; top: var(--sp-4); max-height: calc(100vh - 2 * var(--sp-4)); overflow: auto; }
  .hl-anchor { display: none; }
  .hl-skel { --hl-skel-h: 492px; }
}
/* "sobre …" quebra em até 2 linhas no celular (sem estourar); no computador fica em 1 linha com reticências. */
@media (max-width: 767.98px) {
  .hl-msg-head { align-items: flex-start; }
  .hl-about { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; align-self: center; }
}
@media (max-width: 400px) { .hl-kinds { gap: 6px; } .hl-kinds span { padding: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .hl-skel i, .hl-spin { animation: none; } .hl-qa summary svg { transition: none; } }

/* Admin: opiniões dos salões. */
.fb-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
.fb-filters button { padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.fb-filters button span { margin-left: 4px; color: var(--ink-mute); font-weight: 600; }
.fb-filters button.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }
.fb-list { display: grid; gap: 10px; }
.fb-item { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.fb-item.is-new { border-left: 4px solid #d9480f; }
.fb-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fb-about { color: var(--ink-2); font-size: 14px; }
.fb-status { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fb-status-new { color: #d9480f; }
.fb-message { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); white-space: pre-line; }
.fb-meta { color: var(--ink-mute); font-size: 13px; }
.fb-reply { padding: 10px 12px; border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; background: var(--surface-2); }
.fb-reply strong { font-size: 13.5px; color: var(--brand-text); }
.fb-reply p { margin: 2px 0; font-size: 14.5px; white-space: pre-line; }
.fb-reply small { color: var(--ink-mute); font-size: 13px; }
.fb-reply-form { display: grid; gap: 8px; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 540px) { .fb-status { margin-left: 0; } }
a.platform-card { text-decoration: none; color: inherit; }
