/* Customer support: streamlined, customer-facing conversation workspace */
.starbound-overview .support-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(135px,175px) auto;gap:10px;align-items:stretch;padding:12px;background:#0a1b30;border:1px solid #2e4a6c;border-radius:12px;margin:18px 0 12px}
.starbound-overview .support-toolbar>input,.starbound-overview .support-toolbar>select,.starbound-overview .support-toolbar>button{height:42px;min-height:42px;width:100%;min-width:0;box-sizing:border-box;margin:0;border-radius:8px;font-size:13px}
.starbound-overview .support-toolbar>button{width:auto;min-width:98px;white-space:nowrap}
.starbound-overview .support-layout{gap:16px;align-items:start}
.starbound-overview .support-ticket-list{display:grid;gap:9px;align-content:start}
.starbound-overview .support-ticket-row{border-radius:11px;padding:15px;transition:border-color .15s,background .15s}
.starbound-overview .support-ticket-row:hover{border-color:#6ca2ec;background:#152b47}
.starbound-overview .support-ticket-row.selected{background:#1b3555;border-color:#77adf4}
.starbound-overview .support-thread{background:#0b1a2d;border:1px solid #304b6b;border-radius:12px;padding:18px;min-width:0}
.starbound-overview .support-thread-head{gap:12px}
.starbound-overview .support-ticket-meta{padding:15px 0;border-top:1px solid #2c4766;border-bottom:1px solid #2c4766}
.starbound-overview .sb-support-service-link{background:#10243c;border:1px solid #304f72;border-radius:11px;padding:15px;margin:18px 0}
.starbound-overview .sb-support-service-link .muted{margin:9px 0 0;line-height:1.5}
.starbound-overview .support-message{border-radius:11px}
.starbound-overview .support-reply-form textarea{border-radius:10px;min-height:110px}
@media(max-width:780px){.starbound-overview .support-toolbar{grid-template-columns:minmax(0,1fr) minmax(125px,160px)}.starbound-overview .support-toolbar>button{width:100%}}
@media(max-width:520px){.starbound-overview .support-toolbar{grid-template-columns:1fr}.starbound-overview .support-toolbar>button{width:100%}}

/* Customer ticket workspace v2: Starbound theme, clearer hierarchy and compact conversation */
#supportCustomerRoot .support-layout{display:grid;grid-template-columns:minmax(265px,.92fr) minmax(0,1.08fr);gap:16px;align-items:stretch}
#supportCustomerRoot .support-ticket-list{display:flex;flex-direction:column;gap:10px}
#supportCustomerRoot .support-ticket-row{display:block;text-align:left;position:relative;padding:18px 17px!important;background:#0b1b2f;border:1px solid #304a69;border-radius:12px;min-height:102px;box-shadow:none}
#supportCustomerRoot .support-ticket-row:hover{background:#132943;border-color:#76a6e7}
#supportCustomerRoot .support-ticket-row.selected{background:linear-gradient(120deg,#1b385c,#142943);border-color:#80b6ff;box-shadow:inset 3px 0 #67a5ff}
#supportCustomerRoot .support-ticket-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
#supportCustomerRoot .support-ticket-top strong{font-size:15px;line-height:1.4;overflow-wrap:anywhere;color:#f4f8ff}
#supportCustomerRoot .support-ticket-status{flex:none}
#supportCustomerRoot .support-ticket-details{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:13px;color:#a8c4e8;font-size:11px}
#supportCustomerRoot .support-ticket-category{color:#d5e6ff}
#supportCustomerRoot .support-ticket-priority{border:1px solid #385778;border-radius:5px;padding:3px 6px;font-size:9px;font-weight:800;letter-spacing:.06em;color:#a9c9ed}
#supportCustomerRoot .support-ticket-priority.priority-high{border-color:#9b654a;color:#ffc093;background:#35251f}
#supportCustomerRoot .support-ticket-date{margin-left:auto;color:#91aed2}
#supportCustomerRoot .support-thread{padding:22px;min-height:290px;background:linear-gradient(160deg,#0e2139,#09192c);display:flex;flex-direction:column}
#supportCustomerRoot .support-thread-placeholder{min-height:245px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
#supportCustomerRoot .support-thread-head h3{font-size:22px;line-height:1.3;margin:8px 0 4px;overflow-wrap:anywhere}
#supportCustomerRoot .support-ticket-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0;padding:15px 0}
#supportCustomerRoot .support-conversation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #2d4968;padding-top:17px;margin:12px 0}
#supportCustomerRoot .support-conversation-hint{color:#93b1d7;font-size:11px}
#supportCustomerRoot .support-messages{display:flex;flex-direction:column;gap:12px;max-height:480px;overflow-y:auto;padding:4px 4px 14px;scrollbar-color:#345579 transparent}
#supportCustomerRoot .support-message{width:fit-content;max-width:94%;min-width:min(190px,100%);padding:14px 15px!important;background:#152c48;border:1px solid #355579;border-radius:13px 13px 13px 4px;overflow-wrap:anywhere}
#supportCustomerRoot .support-message.from-staff{background:#1b3657;border-color:#5075a1;align-self:flex-start}
#supportCustomerRoot .support-message.from-customer{background:#173f65;border-color:#467bad;align-self:flex-end;border-radius:13px 13px 4px 13px}
#supportCustomerRoot .support-message-by{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}
#supportCustomerRoot .support-message-by strong{font-size:12px;color:#e8f3ff}
#supportCustomerRoot .support-message-by small{font-size:10px;color:#9ab8df}
#supportCustomerRoot .support-message p{font-size:13px;line-height:1.6;margin:0;white-space:pre-wrap}
#supportCustomerRoot .support-reply-form{display:flex;flex-direction:column;gap:10px;margin-top:12px;padding-top:16px;border-top:1px solid #2e4b6b}
#supportCustomerRoot .support-compose-label{color:#89b9ff;font-size:10px;font-weight:800;letter-spacing:.12em}
#supportCustomerRoot .support-reply-form textarea{width:100%;box-sizing:border-box;min-height:100px;resize:vertical;padding:14px;background:#08192b;border:1px solid #3c5d81;color:#eef6ff;font-size:13px;line-height:1.6}
#supportCustomerRoot .support-reply-form textarea:focus{outline:2px solid #76aaff;outline-offset:1px}
#supportCustomerRoot .support-reply-form button{align-self:flex-end;min-width:120px}
#supportCustomerRoot .support-ticket-list:has(.support-ticket-row) + .support-thread{min-height:300px}
@media(max-width:850px){#supportCustomerRoot .support-layout{grid-template-columns:1fr}#supportCustomerRoot .support-thread{min-height:260px}}
@media(max-width:540px){#supportCustomerRoot .support-ticket-row{min-height:85px}#supportCustomerRoot .support-thread{padding:15px}#supportCustomerRoot .support-conversation-heading{align-items:flex-start;flex-direction:column}}

/* Customer conversation polish v3: full-width readable chat lanes */
#supportCustomerRoot .support-thread{min-width:0}
#supportCustomerRoot .support-messages{width:100%;box-sizing:border-box;gap:16px;padding:8px 2px 20px;align-items:stretch}
#supportCustomerRoot .support-message{box-sizing:border-box;width:clamp(0px,86%,100%);max-width:86%;min-width:0;padding:16px 18px!important;box-shadow:0 5px 18px rgba(0,0,0,.11)}
#supportCustomerRoot .support-message.from-staff{align-self:flex-start;border-left:3px solid #82b6ff}
#supportCustomerRoot .support-message.from-customer{align-self:flex-end;border-right:3px solid #7dbfff}
#supportCustomerRoot .support-message-by{display:flex;gap:8px;align-items:baseline;margin-bottom:11px}
#supportCustomerRoot .support-message-by strong{font-size:13px}
#supportCustomerRoot .support-message-by small{margin-left:auto;font-size:11px;white-space:normal;text-align:right}
#supportCustomerRoot .support-message p{font-size:14px;line-height:1.7;overflow-wrap:anywhere}
#supportCustomerRoot .support-reply-form{gap:12px;margin-top:8px;padding-top:20px}
#supportCustomerRoot .support-reply-form textarea{min-height:120px;border-radius:11px}
#supportCustomerRoot .support-reply-form button{padding:11px 19px}
@media(max-width:540px){#supportCustomerRoot .support-message{width:94%;max-width:94%;padding:13px!important}#supportCustomerRoot .support-message-by{align-items:flex-start;flex-direction:column;gap:3px}#supportCustomerRoot .support-message-by small{margin-left:0;text-align:left}#supportCustomerRoot .support-conversation-hint{font-size:11px}}

/* Light theme: readable customer ticket conversations and metadata */
html[data-theme="light"] #supportCustomerRoot .support-ticket-row,
html[data-theme="light"] #supportCustomerRoot .support-thread,
html[data-theme="light"] #supportCustomerRoot .support-ticket-meta,
html[data-theme="light"] #supportCustomerRoot .support-reply-form{background:#fff!important;color:#172b49!important;border-color:#c3d4e9!important}
html[data-theme="light"] #supportCustomerRoot .support-ticket-row h3,
html[data-theme="light"] #supportCustomerRoot .support-ticket-row strong,
html[data-theme="light"] #supportCustomerRoot .support-thread h3,
html[data-theme="light"] #supportCustomerRoot .support-conversation-heading strong{color:#172b49!important}
html[data-theme="light"] #supportCustomerRoot .support-ticket-row p,
html[data-theme="light"] #supportCustomerRoot .support-ticket-row small,
html[data-theme="light"] #supportCustomerRoot .support-ticket-meta *,
html[data-theme="light"] #supportCustomerRoot .support-conversation-hint,
html[data-theme="light"] #supportCustomerRoot .support-thread-placeholder p{color:#48617e!important}
html[data-theme="light"] #supportCustomerRoot .support-conversation-heading{border-color:#c3d4e9!important}
html[data-theme="light"] #supportCustomerRoot .support-message{background:#edf4ff!important;border-color:#b6cde9!important;color:#172b49!important}
html[data-theme="light"] #supportCustomerRoot .support-message.from-staff{background:#e7f0ff!important;border-left-color:#3874bf!important}
html[data-theme="light"] #supportCustomerRoot .support-message.from-customer{background:#f0f4fa!important;border-right-color:#6386b3!important}
html[data-theme="light"] #supportCustomerRoot .support-message p,
html[data-theme="light"] #supportCustomerRoot .support-message-by strong{color:#172b49!important}
html[data-theme="light"] #supportCustomerRoot .support-message-by small{color:#526e8e!important}
html[data-theme="light"] #supportCustomerRoot .support-compose-label{color:#245b9e!important}
html[data-theme="light"] #supportCustomerRoot .support-reply-form textarea{background:#fff!important;color:#172b49!important;border-color:#9fbada!important}
html[data-theme="light"] #supportCustomerRoot .support-reply-form textarea::placeholder{color:#637d9c!important}

/* Light-mode ticket list: explicit contrast for category, priority, status and date */
html[data-theme="light"] #supportCustomerRoot .support-ticket-row{background:#fff!important;border-color:#b9cde7!important;color:#172b49!important}
html[data-theme="light"] #supportCustomerRoot .support-ticket-row:hover{background:#f1f6ff!important;border-color:#5e92d5!important}
html[data-theme="light"] #supportCustomerRoot .support-ticket-row.selected{background:#e9f2ff!important;border-color:#3475c1!important}
html[data-theme="light"] #supportCustomerRoot .support-ticket-top strong{color:#102a4b!important}
html[data-theme="light"] #supportCustomerRoot .support-ticket-details{color:#465f7f!important}
html[data-theme="light"] #supportCustomerRoot .support-ticket-category{color:#365b8b!important;background:#eaf1fb!important;border-radius:4px;padding:3px 6px}
html[data-theme="light"] #supportCustomerRoot .support-ticket-priority{color:#27548c!important;background:#e8f1ff!important;border-color:#91b2db!important}
html[data-theme="light"] #supportCustomerRoot .support-ticket-priority.priority-high{color:#8a3b18!important;background:#fff0e7!important;border-color:#dc9975!important}
html[data-theme="light"] #supportCustomerRoot .support-ticket-date{color:#4c6685!important}
html[data-theme="light"] #supportCustomerRoot .support-ticket-status{color:#28558d!important;background:#eaf2ff!important;border:1px solid #a9c4e8!important;border-radius:99px;padding:3px 8px}
