/*! XUNTU-SOFTWARE-NOTICE
 * 讯图金耳朵 Web 调音系统
 * Copyright © 2026 深圳市迅图电子科技有限公司。保留所有权利。
 * “讯图”“讯图金耳朵”为注册商标。
 * 本公司自有代码及素材适用专有许可；法律允许或另有授权的情形除外。
 * 第三方组件继续适用其原许可。完整声明见用户端 HTML 源码。
 */
.ai-launcher-guide { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
/* Shared by GD460 and GD810Pro. The launcher stays below native modal dialogs. */
[data-ai-launcher-anchor] { display: inline-block; flex: 0 0 124px; width: 124px; height: 30px; align-self: center; pointer-events: none; }
body:not(.support-staff) .ai-tuning-widget[data-ai-floating] {
  position: fixed; z-index: 2147483000; width: 124px; height: 40px;
  --ai-safe-top: env(safe-area-inset-top, 0px); --ai-safe-right: env(safe-area-inset-right, 0px);
  --ai-safe-bottom: env(safe-area-inset-bottom, 0px); --ai-safe-left: env(safe-area-inset-left, 0px);
}
body:not(.support-staff) [data-ai-floating] .ai-tuning-toggle {
  --ai-launcher-redesign: 1;
  position: relative; z-index: 1; box-sizing: border-box; width: 124px; min-width: 124px; height: 40px; min-height: 40px;
  padding: 0 8px; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 7px;
  color: #17140d; border: 1px solid #ffe6a4; border-radius: 16px;
  background: linear-gradient(145deg, #fff0b4, #f1c75d 60%, #d8a738);
  box-shadow: 0 4px 14px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.65);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transform: none; translate: none; scale: none; letter-spacing: 0;
  transition: box-shadow .18s ease, background .16s ease, border-color .16s ease;
}
/* Paint stays on the stable button so preceding JS markup is also readable. */
body:not(.support-staff) [data-ai-floating] .ai-floating-face {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; pointer-events: none; transform-origin: center;
}
body:not(.support-staff) [data-ai-floating] .ai-floating-symbol {
  flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
  transform: translate3d(var(--ai-icon-x, 0px), var(--ai-icon-y, 0px), 0);
  transition: transform .18s cubic-bezier(.2,.9,.2,1.12);
}
body:not(.support-staff) [data-ai-floating] .ai-floating-label {
  flex: 0 0 auto; margin: 0; font: 650 14px/1.3 "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0; white-space: nowrap; pointer-events: none;
}
body:not(.support-staff) [data-ai-floating] .ai-floating-grip {
  flex: 0 0 8px; width: 8px; height: 16px; margin: 0; color: #715721; fill: currentColor; opacity: .7; pointer-events: none;
}
body:not(.support-staff) [data-ai-floating] .ai-tuning-toggle:hover,
body:not(.support-staff) [data-ai-floating] .ai-tuning-toggle[aria-expanded="true"] {
  border-color: #fff0b4;
  box-shadow: 0 5px 15px rgba(0,0,0,.4), 0 0 16px rgba(241,199,93,.18), inset 0 1px 0 rgba(255,255,255,.65);
}
body:not(.support-staff) [data-ai-floating] .ai-tuning-toggle:focus-visible { outline: 2px solid #8beaff; outline-offset: 2px; }
body:not(.support-staff) [data-ai-floating] .ai-tuning-toggle.is-dragging {
  cursor: grabbing; border-color: #ffe6a4;
  box-shadow: 0 9px 24px rgba(0,0,0,.55), 0 0 0 2px rgba(255,230,164,.45);
}
body:not(.support-staff) [data-ai-floating] .is-dragging .ai-floating-symbol { transform: none; transition: none; }
body:not(.support-staff) [data-ai-floating] .is-dragging .ai-floating-grip { opacity: 1; color: #17140d; }
body:not(.support-staff) [data-ai-floating] .ai-tuning-panel {
  position: fixed; z-index: 0; width: min(580px, calc(var(--ai-floating-vw, 100vw) - 16px));
  height: min(790px, calc(var(--ai-floating-vh, 100dvh) - 84px)); max-height: calc(var(--ai-floating-vh, 100dvh) - 84px);
}
body:is(.auth-pending, .auth-required) .ai-tuning-widget[data-ai-floating] { visibility: hidden; }
body.support-staff [data-ai-launcher-anchor] { display: none; }
@media (pointer: coarse) {
  [data-ai-launcher-anchor] { height: 44px; }
  body:not(.support-staff) .ai-tuning-widget[data-ai-floating],
  body:not(.support-staff) [data-ai-floating] .ai-tuning-toggle { height: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.support-staff) [data-ai-floating] .ai-tuning-toggle,
  body:not(.support-staff) [data-ai-floating] .ai-floating-symbol { transition: none; }
}
