.support-layout {
  display: grid;
  grid-template-columns: minmax(340px, .85fr) minmax(440px, 1.15fr);
  gap: 20px;
  align-items: start;
}
.support-create, .support-history { margin: 0; }
.support-create .panel-head, .support-history .panel-head { margin-bottom: 22px; }
.field-help { color: var(--muted); font-size: .76rem; font-weight: 500; line-height: 1.45; }
.ticket-count { display: grid; place-items: center; min-width: 34px; height: 34px; border: 1px solid #31557c; border-radius: 11px; background: #122b48; color: #a8caff; font-weight: 850; }
.ticket-list { display: grid; gap: 9px; }
.ticket-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 13px; padding: 15px 14px; border: 1px solid var(--line); border-radius: 13px; background: #091725; transition: border-color .18s, background .18s, transform .18s; }
.ticket-item:hover, .ticket-item.active { border-color: #4779b5; background: #102640; transform: translateY(-1px); }
.ticket-item-main { min-width: 0; display: grid; gap: 5px; }
.ticket-item-main small { color: #79a9e9; font-size: .72rem; font-weight: 800; }
.ticket-item-main strong { overflow: hidden; color: #edf4ff; text-overflow: ellipsis; white-space: nowrap; }
.ticket-item-main em { color: var(--muted); font-size: .75rem; font-style: normal; }
.ticket-item > b { color: #7198c7; font-size: 1.45rem; }
.ticket-detail { margin-top: 20px; }
.ticket-detail.standalone { max-width: 1050px; margin: 0 auto; }
.ticket-page-head { max-width: 1050px; margin-right: auto; margin-left: auto; }
.ticket-back { display: inline-flex; margin-bottom: 18px; color: #83b4f4; font-size: .85rem; font-weight: 800; }
.ticket-back:hover { color: #b8d5ff; }
.admin-ticket-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-ticket-detail { max-width: none !important; }
.ticket-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ticket-detail-head h2 { margin: 7px 0 5px; font-size: 1.45rem; }
.ticket-order-link { display: inline-flex; margin-top: 6px; color: #81b1f4; font-size: .82rem; font-weight: 750; }
.ticket-thread { display: grid; gap: 14px; padding: 24px 0; }
.ticket-message { width: min(82%, 760px); padding: 15px 17px; border: 1px solid #294461; border-radius: 15px; background: #091725; }
.ticket-message.customer { justify-self: end; border-bottom-right-radius: 4px; background: #102c50; border-color: #37679d; }
.ticket-message.admin { justify-self: start; border-bottom-left-radius: 4px; background: #10291f; border-color: #275d48; }
.ticket-message > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.ticket-message strong { font-size: .84rem; }
.ticket-message time { color: var(--muted); font-size: .72rem; }
.ticket-message p { margin: 0 !important; color: #d4e1ef !important; overflow-wrap: anywhere; line-height: 1.65 !important; }
.ticket-reply { padding-top: 20px; border-top: 1px solid var(--line); }
.ticket-reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ticket-reply-actions small, .ticket-closed-note { color: var(--muted); }
.ticket-closed-note { padding: 17px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
@media (max-width: 980px) { .support-layout { grid-template-columns: 1fr; } .support-create, .support-history { margin-bottom: 0; } .admin-ticket-list { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ticket-item { grid-template-columns: minmax(0, 1fr) auto; } .ticket-item > b { display: none; } .ticket-item .status { align-self: start; } .ticket-message { width: 94%; } .ticket-detail-head, .ticket-reply-actions { align-items: flex-start; flex-direction: column; } .ticket-reply-actions .btn { width: 100%; } }
