/* Ajuda (frente C): gaveta do "?" (Perguntar, Nesta tela, Suporte), o chat e os chamados montados na central (#/ajuda) e a
   Plataforma › Suporte. Só tokens do app.css: funciona no claro e no escuro. Em tela larga a gaveta encosta ao lado do sistema
   (o conteúdo, o telefone, os avisos e as gavetas de negócio andam para a esquerda); no celular ela ocupa a tela. */
:root { --kh-w: 404px; }

/* ---------- gaveta ---------- */
.kh { position: fixed; top: 0; right: 0; bottom: 0; width: var(--kh-w); max-width: 100vw; background: var(--bg2); border-left: 1px solid var(--line);
  box-shadow: -16px 0 40px rgba(14, 20, 48, .12); z-index: 58; display: flex; flex-direction: column; transform: translateX(104%); visibility: hidden;
  transition: transform .2s ease, visibility 0s linear .2s; }
.kh.on { transform: none; visibility: visible; transition: transform .2s ease; }
@media (prefers-reduced-motion: reduce) { .kh, .kh.on { transition: none; } }
body.kh-dock .app { padding-right: var(--kh-w); }
body.kh-dock .kh { box-shadow: none; }
body.kh-open .phone, body.kh-open .toasts { right: calc(var(--kh-w) + 18px); }
body.kh-open .back, body.kh-open .ke-root { right: var(--kh-w); }
body.kh-open .dropbar { right: calc(var(--kh-w) + 20px); }
#helpBtn { position: relative; }
.kh-btn-dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--bg2); }

.kh-h { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--line); min-height: 56px; }
.kh-h b { font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: -.015em; }
.kh-logo { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.kh-logo svg.i { width: 17px; height: 17px; }
.kh-tabs { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.kh-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font-weight: 600; font-size: 12.5px; cursor: pointer; white-space: nowrap; padding: 0 6px; }
.kh-tabs button:hover { color: var(--text); background: var(--hover); }
.kh-tabs button.on { background: var(--panel); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.kh-tabs button.on svg.i { color: var(--brand2); }
.kh-badge { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.kh-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

/* ---------- chat ---------- */
.kh-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.kh-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.kh-m { display: flex; gap: 8px; align-items: flex-start; }
.kh-q { justify-content: flex-end; }
.kh-q .kh-bub { background: var(--brand); color: #fff; border-radius: 14px 14px 4px 14px; padding: 9px 12px; max-width: 86%; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; font-size: 13.5px; line-height: 1.45; }
.kh-a .kh-bub { background: var(--panel); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 11px 13px; min-width: 0; flex: 1; box-shadow: var(--shadow-sm); }
.kh-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-bg); color: var(--brand2); flex: none; margin-top: 2px; }
.kh-typing { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.kh-dots { display: inline-flex; gap: 4px; }
.kh-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand2); opacity: .3; animation: khdot 1s infinite; }
.kh-dots i:nth-child(2) { animation-delay: .15s; } .kh-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes khdot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.kh-errb { color: var(--red2); font-size: 13px; }

.kh-md { font-size: 13.5px; line-height: 1.58; color: var(--text); overflow-wrap: anywhere; }
.kh-md > :first-child { margin-top: 0; } .kh-md > :last-child { margin-bottom: 0; }
.kh-md p { margin: 0 0 9px; }
.kh-md h2, .kh-md h3, .kh-md h4 { font-size: 14px; margin: 14px 0 6px; font-weight: 700; color: var(--text); }
.kh-md ol, .kh-md ul { margin: 0 0 9px; padding-left: 22px; }
.kh-md li { margin: 4px 0; } .kh-md li::marker { color: var(--brand2); font-weight: 700; }
.kh-md a { color: var(--brand2); font-weight: 600; } .kh-md a:hover { text-decoration: underline; }
.kh-md img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); margin: 10px 0; cursor: zoom-in; box-shadow: var(--shadow-sm); background: var(--panel2); }
.kh-md code { background: var(--hover); border-radius: 5px; padding: 1px 5px; font-size: 12.5px; }
.kh-md blockquote { margin: 8px 0; padding: 8px 11px; border-left: 3px solid var(--brand); background: var(--brand-bg); border-radius: 0 8px 8px 0; }
.kh-md table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 12.5px; display: block; overflow-x: auto; }
.kh-md th, .kh-md td { border: 1px solid var(--line); padding: 5px 7px; text-align: left; vertical-align: top; }
.kh-md th { background: var(--panel2); }
.kh-md .kh-kbd, .kh-md kbd { display: inline-block; padding: 0 7px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; background: var(--panel2);
  font: 600 12px/1.6 var(--font); color: var(--text); white-space: nowrap; }
/* o texto da ajuda (classe hm da central, help.css) em tamanho de gaveta */
.kh-md.hm { font-size: 13.5px; line-height: 1.6; margin-top: 0; color: var(--text); }
.kh-md.hm p { margin: 0 0 9px; }
.kh-md.hm h2 { font-size: 15.5px; margin: 16px 0 6px; } .kh-md.hm h3 { font-size: 14px; margin: 12px 0 5px; }
.kh-md.hm .hm-h { margin: 10px 0 5px; }
.kh-md.hm ol.hm-steps { margin: 2px 0 10px; }
.kh-md.hm ol.hm-steps > li { gap: 10px; padding-bottom: 9px; }
.kh-md.hm ol.hm-steps > li:not(:last-child)::before { left: 10px; top: 25px; }
.kh-md.hm .hm-n { width: 22px; height: 22px; font-size: 11.5px; box-shadow: 0 0 0 3px var(--panel); }
.kh-reader .kh-md.hm .hm-n { box-shadow: 0 0 0 3px var(--bg2); }
.kh-md.hm ul.hm-ul { margin: 0 0 9px; }
.kh-md.hm .hm-call { padding: 9px 11px; margin: 0 0 10px; border-radius: 10px; } .kh-md.hm .hm-call-b { font-size: 13px; }
.kh-md.hm .hm-fig { margin: 4px 0 10px; } .kh-md.hm .hm-fig figcaption { font-size: 11.5px; margin-top: 5px; }
.kh-md.hm .hm-tbl { margin: 0 0 10px; }
.kh-md.hm .hm-btn { height: 21px; font-size: 12px; padding: 0 7px; }
.kh-md.hm a.hm-guia { font-size: 12.5px; }
.kh-art.hm { font-size: 13.5px; }
.kh-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.kh-src { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin-top: 11px; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--muted); }
.kh-src a { color: var(--brand2); font-weight: 600; } .kh-src a:hover { text-decoration: underline; }
.kh-rate { display: flex; align-items: center; gap: 2px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.kh-rate span { margin-right: 4px; }
.kh-rate button { width: 28px; height: 26px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; }
.kh-rate button:hover { background: var(--hover); color: var(--text); border-color: var(--line); }
.kh-rate.done { color: var(--green); font-weight: 600; }
.kh-why { margin-top: 9px; display: flex; flex-direction: column; gap: 6px; }
.kh-why textarea { min-height: 54px; font-size: 13px; }

.kh-ask { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 6px; border-top: 1px solid var(--line); background: var(--bg2); }
.kh-ask textarea { flex: 1; min-height: 40px; max-height: 140px; height: 40px; resize: none; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; }
.kh-send { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.kh-send:hover { background: var(--brand-hover); } .kh-send[disabled] { opacity: .45; cursor: default; }
.kh-cfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px 10px; font-size: 11px; color: var(--faint); min-height: 24px; }
.kh-link { border: 0; background: none; color: var(--brand2); font-weight: 600; font-size: 11.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 3px 5px; border-radius: 6px; }
.kh-link:hover { background: var(--hover); }
.kh-link svg.i { width: 13px; height: 13px; }

.kh-hello { margin: auto 0; padding: 4px 2px 10px; display: flex; flex-direction: column; gap: 11px; }
.kh-hi-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), #8ea8ff);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 32%, transparent); }
.kh-hi-t { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.kh-hello p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.kh-next { border: 1px solid var(--brand-line); background: var(--brand-bg); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.kh-next-l { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand2); display: inline-flex; gap: 5px; align-items: center; }
.kh-next b { font-size: 13.5px; }
.kh-next-b { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.kh-sug { display: flex; flex-direction: column; gap: 6px; }
.kh-sug button { display: flex; align-items: center; gap: 9px; text-align: left; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text);
  cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.35; }
.kh-sug button:hover { border-color: var(--brand-line); background: var(--brand-bg); }
.kh-sug button svg.i { color: var(--brand2); }

/* chat montado dentro da central de ajuda (#/ajuda) */
.kh-chat.embed { height: min(74vh, 780px); min-height: 460px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); overflow: hidden; box-shadow: var(--shadow-sm); }
.kh-chat.embed .kh-msgs { padding: 22px clamp(14px, 4vw, 40px) 12px; }
.kh-chat.embed .kh-ask { padding: 12px clamp(12px, 4vw, 40px) 6px; }
.kh-chat.embed .kh-cfoot { padding: 0 clamp(14px, 4vw, 40px) 12px; }
.kh-hello.embed { max-width: 680px; width: 100%; margin: auto; align-items: center; text-align: center; }
.kh-hello.embed .kh-next { width: 100%; text-align: left; }
.kh-hello.embed .kh-sug { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
@media (max-width: 700px) { .kh-hello.embed .kh-sug { grid-template-columns: 1fr; } }

/* ---------- Nesta tela e artigo ---------- */
.kh-tela { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.kh-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 10px; background: var(--panel); color: var(--muted); }
.kh-search input { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; height: 36px; flex: 1; min-width: 0; }
.kh-search:focus-within { border-color: color-mix(in srgb, var(--brand) 60%, var(--line2)); box-shadow: 0 0 0 3px var(--brand-ring); }
.kh-res { display: flex; flex-direction: column; gap: 7px; }
.kh-sec { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin: 6px 2px 0; }
.kh-sec b { color: var(--text); }
.kh-item { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; color: var(--text); }
.kh-item:hover { border-color: var(--brand-line); background: var(--brand-bg); }
.kh-it-t { font-weight: 650; font-size: 13.5px; } .kh-it-r { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.kh-it-g { display: inline-flex; align-items: center; gap: 4px; color: var(--brand2); font-size: 11.5px; font-weight: 600; } .kh-it-g svg.i { width: 12px; height: 12px; }
.kh-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--brand2); font-weight: 600; font-size: 12.5px; padding: 10px 2px 2px; }
.kh-more:hover { text-decoration: underline; }
.kh-load { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 30px; color: var(--muted); font-size: 13px; }
.kh-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 14px; color: var(--muted); font-size: 13px; }
.kh-empty svg.i { width: 30px; height: 30px; color: var(--faint); } .kh-empty b { color: var(--text); font-size: 14px; }
.kh-empty.sm { padding: 16px 10px; border: 1px dashed var(--line2); border-radius: 12px; } .kh-empty.sm svg.i { width: 24px; height: 24px; }
.kh-reader { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 22px; }
.kh-rd-top { display: flex; align-items: center; gap: 6px; margin: 0 -8px 6px; position: sticky; top: -8px; background: var(--bg2); padding: 6px 0; z-index: 1; }
.kh-rd-t { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 5px; line-height: 1.22; }
.kh-rd-r { color: var(--muted); margin: 0 0 11px; font-size: 13px; }
.kh-rd-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 13px; }
.kh-rd-help, .kh-rd-more { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.kh-rd-more { border-top: 0; padding-top: 0; margin-top: 8px; }

/* ---------- suporte ---------- */
.kh-sup { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.kh-sup.embed { overflow: visible; padding: 0; }
.kh-sup-top { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.kh-sup-top b { display: block; font-size: 13.5px; margin-bottom: 2px; } .kh-sup-top span { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; }
.kh-wa { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--green); padding: 2px 4px; align-self: flex-start; }
.kh-wa:hover { text-decoration: underline; }
.kh-tk-list { display: flex; flex-direction: column; gap: 6px; }
.kh-tk { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; color: var(--text); }
.kh-tk:hover { border-color: var(--line2); background: var(--hover); }
.kh-tk.unread { border-color: var(--brand-line); background: var(--brand-bg); }
.kh-tk-t { font-weight: 650; font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.kh-tk-m { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; flex-wrap: wrap; }
.kh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; display: inline-block; }
.kh-form { display: flex; flex-direction: column; gap: 12px; }
.kh-form-h { display: flex; align-items: center; gap: 8px; }
.kh-form-h > b { font-size: 14px; }
.kh-att { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kh-att-prev { display: inline-flex; align-items: center; min-height: 20px; }
.kh-thumb { position: relative; display: inline-block; }
.kh-thumb img { height: 54px; max-width: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; display: block; }
.kh-thumb button { position: absolute; top: -7px; right: -7px; width: 21px; height: 21px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel); display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--text2); }
.kh-thumb button svg.i { width: 12px; height: 12px; }
.kh-ctx { display: flex; gap: 7px; align-items: flex-start; font-size: 11.5px; color: var(--muted); background: var(--panel2); border-radius: 9px; padding: 8px 10px; line-height: 1.45; }
.kh-ctx svg.i { margin-top: 1px; }
.kh-ok { display: flex; gap: 8px; align-items: flex-start; background: var(--green-bg); color: var(--green); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; font-weight: 600; }
.kh-thr { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kh-thr-t { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kh-thr-m { display: block; font-size: 11.5px; color: var(--muted); }
.kh-thr-msgs { display: flex; flex-direction: column; gap: 8px; }
.kh-tm { border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: var(--panel); max-width: 92%; min-width: 0; }
.kh-tm.mine { align-self: flex-end; background: var(--brand-bg); border-color: var(--brand-line); }
.kh-tm.them { align-self: flex-start; }
.kh-tm.sys { align-self: center; border: 0; background: none; color: var(--faint); font-size: 11.5px; padding: 2px; text-align: center; }
.kh-tm-h { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.kh-tm-h b { color: var(--text); font-size: 12px; }
.kh-tm-b { font-size: 13px; line-height: 1.5; overflow-wrap: break-word; word-break: break-word; }
.kh-tm-img { display: block; max-width: 100%; max-height: 220px; border-radius: 8px; margin-top: 7px; border: 1px solid var(--line); cursor: zoom-in; }
.kh-rated { font-size: 12.5px; color: var(--muted); text-align: center; }
.kh-rated.ask { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; color: var(--text); font-weight: 600; background: var(--panel2); border-radius: 10px; padding: 9px; }
.kh-reply { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.kh-reply textarea { min-height: 72px; font-size: 13px; }
.kh-reply-b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- imagem ampliada ---------- */
.kh-lb { position: fixed; inset: 0; z-index: 96; background: rgba(8, 12, 30, .84); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; cursor: zoom-out; animation: fade .12s; }
.kh-lb img { max-width: min(1400px, 100%); max-height: calc(100vh - 96px); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #fff; }
.kh-lb-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.kh-lb-c { color: #e2e7fb; margin-top: 12px; font-size: 13px; max-width: 760px; text-align: center; }

/* ---------- Plataforma › Suporte ---------- */
.sa-sub { margin: 14px 0 12px; }
.sa-n { margin-left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sa-kpis { margin-bottom: 12px; }
.sa-filters { margin-bottom: 12px; gap: 10px; }
.sa-filters input[type=search] { width: min(340px, 100%); }
.sa-filters select { width: auto; min-width: 180px; }
.sa-grid { display: grid; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); gap: 14px; align-items: start; }
.sa-list { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 360px); min-height: 220px; overflow-y: auto; padding: 2px; }
.sa-row { display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; color: var(--text); min-width: 0; }
.sa-row:hover { border-color: var(--line2); }
.sa-row.unread { background: var(--brand-bg); border-color: var(--brand-line); }
.sa-row.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.sa-row-t { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13.5px; min-width: 0; }
.sa-row-m { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.sa-row-m b { color: var(--text2); }
.sa-det { min-height: 320px; display: flex; flex-direction: column; gap: 12px; }
.sa-dh { display: flex; gap: 12px; align-items: flex-start; }
.sa-dt { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.015em; line-height: 1.25; overflow-wrap: anywhere; }
.sa-st { display: flex; flex-direction: column; gap: 3px; flex: none; } .sa-st select { width: 200px; }
.sa-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 16px; font-size: 12.5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.sa-meta > div { min-width: 0; overflow-wrap: anywhere; }
.sa-meta span:first-child { display: block; color: var(--muted); font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.sa-meta code { font-size: 11.5px; background: var(--hover); padding: 1px 5px; border-radius: 5px; }
.sa-ctx { font-size: 12.5px; border: 1px dashed var(--line2); border-radius: 10px; padding: 8px 11px; }
.sa-ctx summary { cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text2); }
.sa-ctx ul { margin: 8px 0 2px; padding-left: 20px; } .sa-ctx li { margin: 4px 0; }
.sa-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.sa-rated { font-size: 12.5px; font-weight: 600; }
.sa-reply { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.sa-other { display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--line); padding-top: 10px; }
.sa-other button { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; border: 0; background: none; color: var(--brand2); font-weight: 600; font-size: 12.5px; cursor: pointer; padding: 4px 2px; min-width: 0; }
.sa-other button:hover { text-decoration: underline; }
.sa-qs { display: flex; flex-direction: column; gap: 10px; }
.sa-q { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.sa-q-h { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; } .sa-q-h b { font-size: 14px; overflow-wrap: anywhere; }
.sa-q code { font-size: 11px; background: var(--hover); padding: 1px 5px; border-radius: 5px; }
.sa-q-c { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--text2); background: var(--panel2); border-radius: 8px; padding: 7px 10px; }
.sa-q details summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--brand2); }
.sa-ans { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }

/* ---------- telas menores ---------- */
.sa { container-type: inline-size; }
@container (max-width: 940px) { .sa-grid { grid-template-columns: 1fr; } .sa-list { max-height: 380px; } }
@media (max-width: 1100px) { .sa-grid { grid-template-columns: 1fr; } .sa-list { max-height: 380px; } }
@media (max-width: 820px) {
  .kh { width: 100vw; z-index: 76; border-left: 0; }
  body.kh-open .phone, body.kh-open .toasts { right: 18px; }
  body.kh-open .back, body.kh-open .ke-root { right: 0; }
  body.kh-open .dropbar { right: 20px; }
  .kh-tabs button span { font-size: 12px; }
  .sa-dh { flex-direction: column; } .sa-st select { width: 100%; }
}
