/* support.html and the operator's support card */
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }
.sp-faq { border-bottom: 1px solid var(--border); padding: 10px 0; }
.sp-faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.sp-faq p { margin: 8px 0 0; color: var(--ink); line-height: 1.7; font-size: 14px; }
.sp-ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 4px;
             border-bottom: 1px solid var(--border); cursor: pointer; background: none; border-inline: 0; border-top: 0;
             width: 100%; text-align: right; font: inherit; color: inherit; }
.sp-ticket:hover { background: var(--bg); }
.sp-ticket .sp-sub { font-weight: 700; display: flex; align-items: center; gap: 6px; min-width: 0; }
.sp-ticket .sp-sub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ticket .sp-meta-line { grid-column: 1 / -1; font-size: 12px; color: var(--steel); }
.sp-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex-shrink: 0; }
.sp-status { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.sp-status.st-open { background: #FFF1D6; color: #9A5B0B; }
.sp-status.st-answered { background: rgba(34,216,107,0.14); color: var(--green-deep); }
.sp-status.st-closed { background: var(--bg); color: var(--steel); }
.sp-thread-modal { max-width: 640px; width: 100%; overflow-x: hidden; }
.sp-thread { display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow-y: auto; overflow-x: hidden; margin: 12px 0; }
.sp-msg { background: var(--bg); border-radius: 12px; padding: 10px 12px; max-width: 88%; align-self: flex-end; }
.sp-msg.mine { background: #E3F6EA; align-self: flex-start; }
.sp-msg-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--steel); margin-bottom: 4px; }
.sp-msg-body { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.sp-msg-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 12.5px; }
.sp-ctx { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; font-size: 12px; color: var(--steel); margin: 8px 0 0; }
.sp-ctx dd { margin: 0; overflow-wrap: anywhere; }
.sp-topbar { background: var(--navy); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.sp-topbar img { height: 36px; }
.sp-topbar a { color: #fff; font-size: 13px; font-weight: 700; }
body.sp-standalone main.page { margin-right: 0; }
.sp-grid .card[hidden] { display: none; }
/* .btn is display:flex, which beats the hidden attribute: a closed ticket has no "close ticket" button */
#spCloseTicketBtn[hidden] { display: none; }
