/* Help tab inbox: list of requests and the open conversation; side by side when the card is wide enough. */
.support-account-card{container-type:inline-size}
.support-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.support-head h2{margin:0 0 4px}
.support-head p{margin:0}
.support-head button{flex:none;gap:6px}
.support-inbox{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--cream)}
.support-list{display:grid;align-content:start;min-width:0}
.support-item{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;gap:5px;width:100%;min-height:0;padding:10px 14px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);text-align:left;font-weight:400;cursor:pointer}
.support-item:last-child{border-bottom:0}
.support-item:active,.support-item.active{background:var(--mint)}
@media(hover:hover){.support-item:hover{background:var(--mint)}}
.support-item-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:2px}
.support-kind{background:#ecede7;color:#4f5a52}
.support-status.status-new{background:#e5edf3;color:#36586f}
.support-status.status-in_progress{background:#f5edcf;color:#84652a}
.support-status.status-done{background:#e3eedf;color:#2f5d3a}
.support-status.unread{background:#b5422d;color:white}
.support-empty,.support-placeholder{margin:0;padding:28px 18px;color:var(--muted);text-align:center}
.support-detail{display:none;min-width:0;padding:18px;background:var(--surface,#fff)}
.support-detail-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px}
.support-detail-head h3{margin:0 0 6px;font-size:18px;line-height:1.3;overflow-wrap:anywhere}
.support-detail-head h3:focus{outline:none}
.support-detail-title{min-width:0}
.support-back{display:grid;place-items:center;flex:none;width:40px;height:40px;min-height:40px;padding:0;margin:-4px 0 0 -6px;font-size:inherit}
.support-messages{display:grid;gap:10px;max-height:min(55vh,560px);overflow:auto;overscroll-behavior:contain;padding:4px 2px 12px}
.support-message{max-width:min(560px,88%);padding:10px 13px;border-radius:14px;background:var(--cream);border:1px solid var(--line)}
.support-message.from-user{justify-self:end;background:var(--mint)}
.support-message p{margin:0 0 4px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.support-message small{color:var(--muted);font-size:12px}
.support-done-note{margin:0 0 6px}
.support-reply,.support-form{display:grid;gap:0;padding-top:12px;border-top:1px solid var(--line)}
.support-form{padding-top:0;border-top:0}
.support-form select{width:100%;max-width:320px;margin-bottom:16px}
.support-form textarea{width:100%;min-height:140px}
.support-reply textarea{width:100%;min-height:70px}
.support-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.support-actions button{min-width:140px}
.support-form .field-help{margin-top:10px}
.support-reply .form-error,.support-form .form-error{margin:8px 0 0}
.account-tab{position:relative}
.account-tab-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:6px;padding:0 5px;border-radius:9px;background:#b5422d;color:white;font-size:11px;font-weight:700;line-height:1;vertical-align:1px}

/* narrow cards: list or conversation, never both */
.support-account-card[data-view=detail] .support-list{display:none}
.support-account-card[data-view=detail] .support-detail{display:block}
.support-account-card[data-view=detail] .support-head{display:none}

@container (min-width:720px){
  .support-inbox{grid-template-columns:minmax(260px,320px) minmax(0,1fr);min-height:420px}
  .support-list{border-right:1px solid var(--line);max-height:640px;overflow:auto}
  .support-account-card .support-detail,.support-account-card[data-view=detail] .support-list{display:grid;align-content:start}
  .support-account-card[data-view=detail] .support-head{display:flex}
  .support-back{display:none}
  .support-item:last-child{border-bottom:1px solid var(--line)}
}

[data-theme=dark] .support-kind{background:#303236;color:#d3d7dc}
[data-theme=dark] .support-message{background:var(--raised);border-color:var(--line)}
[data-theme=dark] .support-message.from-user{background:#2f3a33}
[data-theme=dark] .support-status.status-new{background:#24303a;color:#a9c3d6}
[data-theme=dark] .support-status.status-in_progress{background:#3a3423;color:#e3c98a}
[data-theme=dark] .support-status.status-done{background:#25352a;color:#a8d1b0}
[data-theme=dark] .support-item:active,[data-theme=dark] .support-item.active{background:#2c2e31}
@media(hover:hover){[data-theme=dark] .support-item:hover{background:#2c2e31}}
@media(max-width:800px){.account-tabs[data-count="8"]{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){
  .support-head{flex-direction:column;align-items:stretch}
  .support-head button{width:100%}
  .support-detail{padding:14px}
  .support-form select{max-width:none}
  .support-actions button{flex:1 1 0;min-width:0}
  .support-message{max-width:94%}
}
.push-account-card .push-note{margin:0 0 14px}
.push-options{display:grid;gap:12px;margin-bottom:6px}
.push-option{display:flex;align-items:flex-start;gap:12px;margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;cursor:pointer;font-weight:400}
.push-option input{flex:none;width:20px;height:20px;margin-top:2px}
.push-option span{display:grid;gap:2px;min-width:0}
.push-option small{color:var(--muted);font-size:12.5px}
.push-time{display:grid;grid-template-columns:auto minmax(0,180px);align-items:center;gap:10px;margin:-4px 0 0 46px}
.push-time label{margin:0;font-size:13px}
.push-actions{margin-top:12px}
[data-theme=dark] .push-option{border-color:var(--line)}.support-item-meta{display:flex;align-items:center;gap:5px;min-width:0}
.support-item-meta .pill{padding:2px 7px;font-size:10.5px}
.support-item-meta time{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}
.support-item-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.support-item.unread .support-item-title::before{content:"";display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#b5422d;vertical-align:1px}