.customer-support-shell { display: grid; gap: 16px; }
.customer-support-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid rgba(188,196,207,.18); border-radius: 10px; background: linear-gradient(145deg, #15181c, #0c0e11); }
.customer-support-head h3, .customer-support-head p { margin: 0; }
.customer-support-head p:last-child { margin-top: 6px; color: #a5adb8; }
.customer-support-compose { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(188,196,207,.2); border-radius: 10px; background: #111419; }
.customer-support-compose-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(170px, .8fr) minmax(150px, .65fr); gap: 12px; }
.customer-support-compose label, .customer-support-reply { display: grid; gap: 7px; }
.customer-support-compose-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.customer-support-compose-actions p { margin: 0; color: #9da5af; font-size: 12px; }
.customer-support-sections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.customer-support-sections button { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 9px 12px; gap: 10px; border: 1px solid rgba(188,196,207,.16); border-radius: 8px; background: #101318; color: #aeb6c0; text-align: left; }
.customer-support-sections button:hover, .customer-support-sections button.active { border-color: rgba(226,231,237,.38); background: #1a1e23; color: #f0f2f4; }
.customer-support-sections strong { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #252a30; color: #e8ebee; font-size: 11px; }
.customer-support-workspace { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); min-height: 560px; overflow: hidden; border: 1px solid rgba(188,196,207,.18); border-radius: 10px; background: #0b0d10; }
.customer-support-inbox { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid rgba(188,196,207,.16); background: #101318; }
.customer-support-search { display: flex; align-items: center; gap: 8px; margin: 12px; padding: 0 10px; border: 1px solid rgba(188,196,207,.18); border-radius: 7px; background: #090b0e; }
.customer-support-search svg { width: 16px; color: #959da7; }
.customer-support-search input { min-height: 40px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.customer-support-thread-list { display: grid; align-content: start; overflow: auto; }
.customer-support-thread { display: grid; gap: 7px; padding: 13px 14px; border: 0; border-bottom: 1px solid rgba(188,196,207,.11); color: #eef1f4; text-align: left; background: transparent; cursor: pointer; }
.customer-support-thread:hover, .customer-support-thread.active { background: #1a1e23; }
.customer-support-thread.active { box-shadow: inset 3px 0 #dfe3e8; }
.customer-support-thread > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.customer-support-thread strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-support-thread time, .customer-support-thread small { color: #929ba6; font-size: 11px; }
.customer-support-thread em { color: #c5cbd2; font-size: 11px; font-style: normal; }
.customer-support-thread b { display: grid; place-items: center; min-width: 20px; min-height: 20px; border-radius: 10px; background: #e5e8eb; color: #111317; font-size: 11px; }
.customer-support-chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; background: #0d1014; }
.customer-support-chat > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid rgba(188,196,207,.15); }
.customer-support-chat h3 { margin: 0; }
.customer-support-chat > header > span { padding: 6px 9px; border: 1px solid rgba(188,196,207,.2); border-radius: 999px; color: #d7dbe0; font-size: 11px; }
.customer-support-messages { display: flex; flex-direction: column; gap: 10px; padding: 18px; overflow: auto; }
.customer-support-message { width: min(76%, 680px); padding: 11px 13px; border: 1px solid rgba(188,196,207,.17); border-radius: 10px; background: #161a1f; }
.customer-support-message.outgoing { align-self: flex-end; background: #20252b; }
.customer-support-message.incoming { align-self: flex-start; }
.customer-support-message > div { display: flex; justify-content: space-between; gap: 12px; }
.customer-support-message time, .customer-support-message small { color: #969fa9; font-size: 10px; }
.customer-support-message p { margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-support-reply { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 14px 18px; border-top: 1px solid rgba(188,196,207,.15); background: #111419; }
.customer-support-closed { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; gap: 12px; border-top: 1px solid rgba(188,196,207,.15); color: #9ba3ad; }
.customer-support-closed p { margin: 0; }
.customer-support-confirmation { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; gap: 16px; border-top: 1px solid rgba(188,196,207,.18); background: #15191e; }
.customer-support-confirmation strong, .customer-support-confirmation p { margin: 0; }
.customer-support-confirmation p { margin-top: 4px; color: #9ca5af; font-size: 12px; }
.customer-support-confirmation > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.customer-support-chat-empty, .support-empty-context { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 420px; padding: 32px; text-align: center; }
.customer-support-chat-empty svg, .support-empty-context svg { width: 38px; height: 38px; color: #aeb5bd; }
.customer-support-chat-empty h3, .customer-support-chat-empty p, .support-empty-context h3, .support-empty-context p { margin: 0; }
.customer-support-chat-empty p, .support-empty-context p { max-width: 620px; color: #9da5af; }
@media (max-width: 900px) {
  .customer-support-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-support-compose-grid { grid-template-columns: 1fr 1fr; }
  .customer-support-compose-grid label:first-child { grid-column: 1 / -1; }
  .customer-support-workspace { grid-template-columns: 1fr; min-height: 0; }
  .customer-support-inbox { max-height: 320px; border-right: 0; border-bottom: 1px solid rgba(188,196,207,.16); }
  .customer-support-chat { min-height: 520px; }
}
@media (max-width: 600px) {
  .customer-support-head, .customer-support-compose-actions { align-items: stretch; flex-direction: column; }
  .customer-support-compose-grid { grid-template-columns: 1fr; }
  .customer-support-compose-grid label:first-child { grid-column: auto; }
  .customer-support-message { width: 90%; }
  .customer-support-reply { grid-template-columns: 1fr; }
  .customer-support-sections { grid-template-columns: 1fr; }
  .customer-support-confirmation, .customer-support-closed { align-items: stretch; flex-direction: column; }
  .customer-support-confirmation > div:last-child { display: grid; justify-content: stretch; }
}
