.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.support-dialog{width:min(620px,94vw);height:min(720px,90dvh);padding:0;border:0;border-radius:18px;box-shadow:0 25px 80px rgba(0,0,0,.28);overflow:hidden;color:var(--ink)}
.support-dialog[open]{display:flex;flex-direction:column}
.support-dialog::backdrop{background:rgba(5,18,31,.62);backdrop-filter:blur(3px)}
.support-head{display:flex;align-items:center;gap:.8rem;padding:1rem 1.1rem;border-bottom:1px solid var(--line)}
.support-head-copy{flex:1;min-width:0}.support-head .eyebrow{margin:0 0 .15rem}
.support-head h2{margin:0;font-size:1.2rem;color:var(--navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;outline:0}
.support-close{width:42px;height:42px;border:0;border-radius:50%;background:#f1f5f8;color:var(--navy);font-size:1.6rem}
.support-back{min-height:42px;padding:0 .8rem;border:0;border-radius:10px;background:#edf2f6;color:var(--navy);font-weight:800}
.support-status{margin:0;padding:.4rem 1.1rem 0;min-height:1.2rem;color:var(--muted);font-size:.8rem}
.support-pane{flex:1;min-height:0;display:flex;flex-direction:column;padding:.5rem 1.1rem 1rem}
.support-list-actions{display:flex;justify-content:flex-end;margin-bottom:.5rem}
.support-list{overflow-y:auto;min-height:0;overscroll-behavior:contain}
.support-item{display:flex;width:100%;gap:.8rem;justify-content:space-between;align-items:flex-start;padding:.85rem .5rem;border:0;border-bottom:1px solid #edf1f4;background:#fff;text-align:left;color:var(--ink);min-width:0}
.support-item:hover{background:#f7fafc}.support-item.is-unread strong{color:#0b2f55}
.support-item-copy{display:grid;gap:.2rem;min-width:0}.support-item-copy strong{color:var(--navy)}
.support-item-copy small{color:var(--muted)}
.support-preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.support-item-side{display:grid;justify-items:end;gap:.25rem;flex:0 0 auto}.support-item-side small{color:var(--muted);font-size:.72rem}
.support-cat{font-size:.68rem;font-weight:850;color:#31516e;background:#edf3f8;padding:.28rem .5rem;border-radius:7px}
.support-empty{padding:2rem 1rem;text-align:center;color:var(--muted);display:grid;gap:.6rem;justify-items:center}
.support-empty strong{color:var(--navy)}.support-empty p{margin:0;max-width:34ch;line-height:1.5}
.support-skel{height:58px;margin:.5rem 0;border-radius:10px;background:linear-gradient(90deg,#eef3f7,#f8fafc,#eef3f7);background-size:200% 100%;animation:supportSkel 1.2s linear infinite}
@keyframes supportSkel{to{background-position:-200% 0}}
.support-form{display:flex;flex-direction:column;gap:.9rem;overflow-y:auto;padding-top:.5rem}
.support-form-actions{display:flex;justify-content:space-between;gap:.6rem}
.support-error{margin:.5rem 0 0;color:var(--danger);font-weight:700;font-size:.82rem}
.support-thread-meta{display:flex;gap:.6rem;align-items:center;color:var(--muted);font-size:.8rem;padding-bottom:.5rem}
.support-messages{flex:1;min-height:0;overflow-y:auto;background:#f3f6f9;border-radius:12px;padding:.8rem;overscroll-behavior:contain}
.support-msg{max-width:86%;margin:.5rem 0;padding:.6rem .75rem;border-radius:10px;background:#fff;font-size:.88rem}
.support-msg.from-user{margin-left:auto;background:#e5f7ed}
.support-msg header{display:flex;gap:.6rem;justify-content:space-between;margin-bottom:.2rem;font-size:.7rem;color:#526b82}
.support-msg p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}
.support-reply{display:flex;gap:.5rem;align-items:flex-end;margin-top:.7rem}.support-reply textarea{flex:1;resize:none}
.support-dialog button:focus-visible,.support-dialog textarea:focus-visible,.support-dialog input:focus-visible,.support-dialog select:focus-visible{outline:3px solid #72dca0;outline-offset:2px}
.support-nav-badge{margin-left:auto}
.support-inbox-panel{margin-bottom:1rem}.support-inbox-list{margin-top:.5rem}
.chat-support-open{margin-top:.2rem}
@media(max-width:620px){
  .support-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0}
  .support-msg{max-width:94%}.support-reply{flex-direction:column;align-items:stretch}.support-reply .btn,.support-form-actions .btn{min-height:44px}
  .support-pane{padding-bottom:calc(1rem + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.support-skel{animation:none}}
