/* E9 · Ayuda y casos de soporte (cliente y panel del negocio). Reusa los tokens y componentes de la app (hx-card, hx-badge, hx-msg…). */
.sup-root{display:flex;flex-direction:column;gap:14px;min-width:0}
.sup-head h3,.sup-sec h3{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:16px;font-weight:700}
.sup-head h3 .icon,.sup-sec h3 .icon{width:18px;height:18px;color:var(--brand-text)}
.sup-sec{border:1px solid var(--border);border-radius:16px;padding:12px 14px;background:var(--surface)}
.sup-ops,.sup-chats,.sup-list{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.sup-ops li,.sup-chats li{display:flex;align-items:center;gap:10px;min-width:0}
.sup-ops li>span:first-child,.sup-chats li>span:first-child{display:flex;flex-direction:column;min-width:0;font-size:14px}
.sup-ops small,.sup-chats small{font-size:12.5px}
.sup-item{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:11px 12px;border-radius:14px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);transition:border-color .2s,background .2s}
.sup-item:hover,.sup-item:focus-visible{border-color:var(--border-2);background:var(--surface)}
.sup-item>.icon{width:16px;height:16px;color:var(--text-3);flex:none;transform:rotate(-90deg)}
.sup-item-main{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.sup-item-sub{font-size:14.5px;font-weight:620;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sup-item small{font-size:12.5px}
.sup-hours{display:flex;gap:6px;align-items:flex-start}
.sup-hours .icon,.sup-ro .icon{width:14px;height:14px;flex:none;margin-top:2px}
.sup-topics{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.sup-topics legend{margin-bottom:8px}
.sup-topics .hx-chip{cursor:pointer;position:relative}
.sup-topics input{position:absolute;opacity:0;pointer-events:none}
.sup-topics .hx-chip:has(input:checked){border-color:var(--brand);background:var(--brand-soft);color:var(--brand-text)}
.sup-topics .hx-chip:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:2px}
.sup-file input[type=file]{min-height:auto;padding:10px}
.sup-case{display:flex;flex-direction:column;gap:12px;min-width:0}
.sup-meta{gap:6px;align-items:center}
.sup-thread{max-height:min(46vh,420px);overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:4px 2px}
.sup-thread .hx-msg.mine{align-self:flex-end;background:var(--brand-soft);border-color:transparent;border-radius:16px 16px 6px 16px}
.sup-thread .sup-msg-support{border-color:var(--brand-ring)}
.sup-ev{align-self:center;display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--text-3);margin:2px 0;text-align:center}
.sup-ev .icon{width:13px;height:13px;flex:none}
.sup-att{display:block;margin-top:6px}
.sup-att img{display:block;max-width:220px;max-height:180px;border-radius:10px;border:1px solid var(--border);object-fit:cover}
.sup-reply textarea{min-height:64px}
.sup-reply .hx-row{margin-top:8px}
.sup-attach{cursor:pointer}
.sup-attach span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sup-actions{gap:8px}
.sup-ro{display:flex;gap:6px;align-items:flex-start}
.sup-rec summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:620;color:var(--brand-text);padding:6px 0;list-style:none}
.sup-rec summary::-webkit-details-marker{display:none}
.sup-rec summary .icon{width:16px;height:16px}
.sup-rec[open] summary{margin-bottom:6px}
.sup-rec .hx-seg{margin:8px 0 12px}
.sup-rec-form{margin-top:4px}
.sup-rec-out{display:flex;gap:6px;align-items:flex-start;padding:10px 12px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border)}
.sup-rec-out .icon{width:16px;height:16px;color:var(--success);flex:none;margin-top:2px}
.sup-biz .hx-seg{margin:4px 0}
.sup-root h4{gap:6px;margin:0 0 6px;font-size:14.5px}
.sup-root h4 .icon{width:16px;height:16px;color:var(--brand-text)}
@media (max-width:560px){
  .sup-sec{padding:10px 12px}
  .sup-att img{max-width:100%}
  .sup-thread{max-height:50vh}
  .sup-actions .btn{flex:1 1 auto}
}
.sup-root .sup-badges{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px}
.sup-root .sup-badges .hx-badge{display:inline-flex}
.sup-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sup-thread{min-height:0;flex:none}
