/*! XUNTU-SOFTWARE-NOTICE
 * 讯图金耳朵 Web 调音系统
 * Copyright © 2026 深圳市迅图电子科技有限公司。保留所有权利。
 * “讯图”“讯图金耳朵”为注册商标。
 * 本公司自有代码及素材适用专有许可；法律允许或另有授权的情形除外。
 * 第三方组件继续适用其原许可。完整声明见用户端 HTML 源码。
 */
html.support-staff-root { min-width: 0; overflow: hidden; }
body.support-staff { --support-sidebar-width: 260px; min-width: 0; overflow: hidden; }
#supportWorkspace { position: fixed; inset: 0 var(--support-sidebar-width) 0 0; overflow: auto; overscroll-behavior: contain; }
body.support-staff #app { --left-control-width: 112px; min-height: 760px; overflow: visible; }
body.support-staff #app .home-grid { grid-template-columns: 258px minmax(1050px, 1fr); min-height: 686px; }
body.support-staff #app .left-rail { grid-template-columns: minmax(0, 1fr); grid-template-rows: 248px 174px max-content max-content; overflow-y: auto; }
body.support-staff #app .main-stage { min-height: 686px; }
#supportModalScrim { position: fixed; z-index: 100; inset: 0 var(--support-sidebar-width) 0 0; background: rgba(1, 8, 14, .68); backdrop-filter: blur(4px); }
#supportModalScrim[hidden] { display: none; }
body.support-staff dialog[open] { position: fixed; z-index: 110; min-width: 0; max-width: calc(100vw - var(--support-sidebar-width) - 24px); max-height: calc(100dvh - 24px); overflow: auto; }
body.support-staff dialog[open]:not(#communicationDialog) { left: calc((100vw - var(--support-sidebar-width)) / 2); right: auto; top: 50%; bottom: auto; margin: 0; transform: translate(-50%, -50%); }
body.support-staff #communicationDialog[open] { left: calc((100vw - var(--support-sidebar-width)) / 2); width: min(1100px, calc(100vw - var(--support-sidebar-width) - 24px)); max-width: calc(100vw - var(--support-sidebar-width) - 24px); }
body.support-staff .toast-region { right: calc(var(--support-sidebar-width) + 16px); }
body.support-staff .link-tune-progress-overlay { right: var(--support-sidebar-width); }
#supportSidebar { --support-status-color: #e0c679; position: fixed; z-index: 10000; top: 0; right: 0; width: var(--support-sidebar-width); height: 100dvh; overflow-y: auto; padding: 18px 14px; border-left: 1px solid #365363; background: #0b1b29; color: #e8f0f4; box-shadow: -8px 0 28px #0005; font-size: 13px; }
#supportSidebar header { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
#supportSidebar header strong { font-size: 17px; }
#supportLogout { padding: 6px 8px; border: 1px solid #587081; border-radius: 5px; color: #d8e9f0; background: #142b3a; font-size: 11px; cursor: pointer; }
.support-help { color: #9bb0be; font-size: 12px; line-height: 1.6; }
#supportSidebar > header + .support-help > a { color: var(--support-status-color); text-decoration: none; }
#supportSidebar > header + .support-help > a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.support-users { display: grid; gap: 8px; margin-top: 17px; }
.support-user-card { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); grid-template-areas: "phone vehicle" "status region"; align-items: start; gap: 5px 8px; min-width: 0; width: 100%; box-sizing: border-box; padding: 12px 10px; border: 1px solid #304c5d; border-radius: 8px; color: #e8f0f4; background: #112b3b; text-align: left; line-height: 1.5; cursor: pointer; }
.support-user-card.active { border-color: #d9b451; background: #1c3542; }
.support-user-card strong { font-size: 14px; }
.support-user-card span, .support-empty { color: #9bb0be; font-size: 12px; }
.support-user-phone { grid-area: phone; white-space: nowrap; }
.support-user-status { grid-area: status; white-space: nowrap; }
.support-user-card .support-user-vehicle { grid-area: vehicle; color: #e8f0f4; }
.support-user-region { grid-area: region; }
.support-user-phone, .support-user-status, .support-user-vehicle, .support-user-region { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.support-status { margin-top: 18px; padding: 10px; border: 1px solid #304c5d; border-radius: 7px; color: var(--support-status-color); line-height: 1.5; }
.support-control { display: flex; flex-wrap: wrap; gap: 8px; padding: 11px; border: 1px solid #466174; border-radius: 8px; background: #112b3b; }
.support-control p { flex: 1 1 100%; margin: 0; color: #c7d8e2; line-height: 1.6; overflow-wrap: anywhere; }
.support-control[data-state="owned"] { border-color: #398c6b; background: #10352d; }
.support-control[data-state="handoff"] { border-color: #c7a758; background: #36301c; }
.support-control button { min-height: 34px; padding: 6px 10px; border: 1px solid #698b9e; border-radius: 6px; background: #20485d; color: #fff; cursor: pointer; font: inherit; }
.support-control button:disabled { opacity: .55; cursor: wait; }
.support-control button[hidden] { display: none; }
.support-control button:focus-visible { outline: 2px solid #8ed6ff; outline-offset: 3px; }
.support-control #supportLeave { background: transparent; color: #c7d8e2; }
#supportUpdateStatus { color: var(--support-status-color); }
.support-action-feedback { margin-top: 8px; padding: 10px; border: 1px solid #304c5d; border-radius: 7px; color: #a9c0cb; line-height: 1.5; overflow-wrap: anywhere; }
.support-action-feedback[data-tone="applied"] { border-color: #2e6b57; color: #8ce1ba; }
.support-action-feedback[data-tone="error"] { border-color: #9d4a50; color: #ffabb0; }
.support-device-feedback { margin-top: 8px; padding: 10px; border: 1px solid #304c5d; border-radius: 7px; color: #a9c0cb; line-height: 1.5; overflow-wrap: anywhere; }
.support-device-feedback[data-tone="verified"] { border-color: #2e6b57; color: #8ce1ba; }
.support-device-feedback[data-tone="error"] { border-color: #9d4a50; color: #ffabb0; }
@media (max-width: 1100px) { body.support-staff { --support-sidebar-width: 240px; } }
html.communication-popout body.support-staff { --support-sidebar-width: 0px; }
html.communication-popout body.support-staff #communicationDialog[open] { width: 100%; max-width: 100%; max-height: 100dvh; }
