/*! XUNTU-SOFTWARE-NOTICE
 * 讯图金耳朵 Web 调音系统
 * Copyright © 2026 深圳市迅图电子科技有限公司。保留所有权利。
 * “讯图”“讯图金耳朵”为注册商标。
 * 本公司自有代码及素材适用专有许可；法律允许或另有授权的情形除外。
 * 第三方组件继续适用其原许可。完整声明见用户端 HTML 源码。
 */
/* Presentation only. Original controls, events, numeric values and staff layout stay intact. */
html { min-width: 0; }
body:not(.support-staff) { min-width: 0; min-height: 100%; height: auto; overflow: auto; }
body:not(.support-staff) .app-shell {
  --eq-region-height: 18px; --eq-cell-height: 22px; --eq-number-height: 16px;
  --eq-preferred-slider-height: max(51px, calc(45dvh - 242px));
  --channel-row-gap: clamp(3px, calc(1dvh - 3px), 6px);
  height: 100vh; height: 100dvh; min-height: 0;
  grid-template-rows: auto minmax(0, 1fr); overflow: visible;
}
.source-status-region, .header-actions { display: contents; }
body:not(.support-staff) .titlebar { display: grid; grid-template-columns: clamp(280px, 28vw, 420px) minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; align-content: start; min-width: 0; gap: 5px 12px; padding: 5px 12px; }
body:not(.support-staff) :is(.brand, .brand div, .commandbar, .command-group, .page-tabs) { min-width: 0; max-width: 100%; flex-wrap: wrap; }
body:not(.support-staff) .brand { grid-area: 1 / 1; }
body:not(.support-staff) .brand div { row-gap: 3px; }
body:not(.support-staff) .brand strong { overflow-wrap: anywhere; }
body:not(.support-staff) .commandbar { display: contents; }
body:not(.support-staff) .source-status-region { grid-area: 2 / 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
body:not(.support-staff) .source-status-region .source-controls { flex: none; flex-wrap: nowrap; }
body:not(.support-staff) .source-status-region .device-io-status { flex: 1 1 0; max-width: none; }
body:not(.support-staff) .header-actions { grid-area: 1 / 2 / 3 / 3; display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; align-items: center; min-width: 0; min-height: 40px; gap: 6px 8px; padding-left: 132px; }
body:not(.support-staff) .header-actions > .page-tabs { display: contents; }
body:not(.support-staff) .header-actions .ai-launcher-guide { position: relative; min-height: 40px; }
body:not(.support-staff) .header-actions [data-ai-launcher-anchor] { position: absolute; right: calc(100% + 8px); top: 0; width: 124px; height: 40px; }
body:not(.support-staff) .header-actions .connection-button { margin-left: 0; }
body:not(.support-staff) .header-actions .account-button { min-width: 0; max-width: 100%; }
body:not(.support-staff) .header-actions .account-button svg { flex: none; }
body:not(.support-staff) .header-actions .account-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:not(.support-staff) .source-controls { margin-left: 0; }
body:not(.support-staff) .source-select { min-width: 0; max-width: 100%; }
body:not(.support-staff) .device-io-status { min-width: 0; margin-left: 0; }
body:not(.support-staff) .workspace { min-width: 0; min-height: 0; height: 100%; padding: 5px; overflow: visible; }
body:not(.support-staff) .page[data-page="home"] { height: 100%; min-height: 0; overflow: visible; }
body:not(.support-staff) .home-grid { display: grid; grid-template-columns: 254px minmax(0, 1fr); gap: 6px; height: 100%; min-height: 0; overflow: visible; }
body:not(.support-staff) .left-rail { display: flex; flex-direction: column; align-self: start; min-width: 0; min-height: 0; max-height: none; overflow: visible; }
body:not(.support-staff) .left-rail > .panel { min-width: 0; flex: none; }
body:not(.support-staff) :is(.crossover-panel, .eq-actions-panel, .preset-panel, .quick-compensation-panel) { padding: 8px; }
body:not(.support-staff) .panel-title { font-size: 14px; line-height: 22px; }
body:not(.support-staff) :is(.crossover-columns, .two-column-buttons, .preset-grid, .quick-compensation-fields) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body:not(.support-staff) :is(.crossover-columns select, .field-with-unit, .two-column-buttons button, .preset-grid button) { width: 100%; max-width: 100%; }
body:not(.support-staff) :is(.two-column-buttons button, .preset-grid button) { height: auto; min-height: var(--button-height); padding-block: 5px; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
body:not(.support-staff) .preset-panel-title { flex-wrap: wrap; align-items: baseline; }
body:not(.support-staff) .preset-panel-title > small { white-space: normal; }
body:not(.support-staff) .quick-compensation-fields label { min-width: 0; flex-wrap: wrap; }
body:not(.support-staff) .ai-tuning-widget { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); margin: 0; }
body:not(.support-staff) .main-stage { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(min-content, 1fr) max-content max-content; gap: 6px; height: 100%; min-height: 0; overflow: visible; }
body:not(.support-staff) :is(.response-panel, .equalizer-panel) { min-width: 0; overflow: visible; padding: 4px 8px; }
body:not(.support-staff) .response-panel { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(250px, 1fr); min-height: min-content; }
body:not(.support-staff) :is(.response-header, .eq-header) { height: auto; min-height: 24px; min-width: 0; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-bottom: 3px; }
body:not(.support-staff) :is(.response-heading, .eq-heading) { flex-wrap: wrap; gap: 3px 8px; }
body:not(.support-staff) :is(.response-heading .panel-title, .eq-heading .panel-title) { white-space: normal; }
body:not(.support-staff) :is(.response-tools, .selected-band-readout) { min-width: 0; flex-wrap: wrap; gap: 4px; }
body:not(.support-staff) .response-tools { flex: 1 1 auto; }
body:not(.support-staff) .response-tools .communication-status { min-width: 0; max-width: 100%; }
body:not(.support-staff) .headroom-status { min-width: 0; white-space: normal; }
body:not(.support-staff) .selected-band-readout { flex: 1 1 auto; }
body:not(.support-staff) .selected-range-summary { display: flex; min-width: 0; max-width: none; height: auto; }
body:not(.support-staff) .selected-range-summary > span { white-space: normal; }
body:not(.support-staff) .response-body { position: relative; inset: auto; grid-template-columns: 50px minmax(0, 1fr); height: auto; min-height: 250px; margin-top: 0; overflow: visible; contain: size; }
body:not(.support-staff) .response-axis-rail { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr) 20px; }
body:not(.support-staff) .response-chart-scroll { min-width: 0; min-height: 0; height: 100%; }
body:not(.support-staff) .response-chart { min-width: 0; width: 100%; height: calc(100% - 18px); }
body:not(.support-staff) .chart-band-node circle { r: var(--responsive-node-radius, 8px); }
body:not(.support-staff) [data-responsive-node-labels="hidden"] .chart-band-node text { visibility: hidden; }
body:not(.support-staff) .response-channel-item { min-height: min-content; }
body:not(.support-staff) .eq-workbench { --eq-rows: var(--eq-region-height) repeat(3, var(--eq-cell-height)) var(--eq-slider-height) var(--eq-number-height); position: relative; height: auto; padding-top: 2px; grid-template-columns: var(--eq-row-label-width, 50px) minmax(0, 1fr); overflow: visible; }
body:not(.support-staff) .equalizer-panel { --eq-numeric-font-size: 12px; --eq-slider-height: var(--eq-fit-slider-height, var(--eq-preferred-slider-height)); }
/* Resolve viewport-based preferred height without changing live controls while measuring. */
body:not(.support-staff) .equalizer-panel::before { content: ""; position: fixed; top: 0; left: 0; width: 0; height: var(--eq-preferred-slider-height); visibility: hidden; pointer-events: none; }
body:not(.support-staff) .eq-row-labels { height: calc(var(--eq-region-height) + 3 * var(--eq-cell-height) + var(--eq-slider-height) + var(--eq-number-height) + 2px); grid-template-rows: var(--eq-rows); font-size: 11px; }
body:not(.support-staff) .eq-bands { position: relative; min-width: 0; height: auto; grid-template-columns: var(--eq-band-columns, repeat(31, minmax(0, 1fr))); grid-template-rows: auto; overflow: visible; background: none; }
body:not(.support-staff) .eq-bands::before { display: none; }
body:not(.support-staff) .eq-responsive-group { position: relative; display: grid; min-width: 0; grid-column: span var(--group-bands); grid-template-rows: var(--eq-rows); }
body:not(.support-staff) .eq-responsive-group > .eq-frequency-range { grid-row: 1; grid-column: 1 / -1 !important; }
body:not(.support-staff) .eq-responsive-group .eq-band > * { grid-column: var(--responsive-band-column); }
body:not(.support-staff) .eq-band { display: contents; }
body:not(.support-staff) .eq-cell { height: var(--eq-cell-height); }
body:not(.support-staff) .eq-frequency-value { white-space: nowrap; font-size: calc(var(--eq-numeric-font-size) * var(--eq-frequency-scale, 1)); }
body:not(.support-staff) .eq-q-input { font-size: calc(var(--eq-numeric-font-size) * var(--eq-q-scale, 1)); }
body:not(.support-staff) [data-responsive-eq-compact="true"] .eq-cell { padding-inline: 0; }
body:not(.support-staff) .eq-bulk-input { width: min(52px, calc(var(--eq-row-label-width, 50px) - 8px)); min-width: 0; }
body:not(.support-staff) .slider-wrap input { flex: none; width: calc(var(--eq-slider-height) - 2px); }
body:not(.support-staff) .is-graphic-mode .eq-workbench { --eq-rows: var(--eq-region-height) var(--eq-cell-height) 0px var(--eq-cell-height) calc(var(--eq-slider-height) + var(--eq-cell-height)) var(--eq-number-height); }
body:not(.support-staff) .is-graphic-mode .eq-bands { grid-template-rows: auto; }
body:not(.support-staff) .is-graphic-mode .eq-row-labels { grid-template-rows: var(--eq-rows); }
body:not(.support-staff) .is-graphic-mode .slider-wrap input { width: calc(var(--eq-slider-height) + var(--eq-cell-height) - 2px); }
body:not(.support-staff) .is-graphic-mode .eq-q-input { height: 0; padding: 0; border: 0; }
body:not(.support-staff) [data-responsive-eq="wrapped"] { --eq-preferred-slider-height: clamp(52px, calc(20dvh - 78px), 90px); }
body:not(.support-staff) [data-responsive-eq="wrapped"] .eq-bands { display: flex; flex-wrap: wrap; row-gap: 8px; }
body:not(.support-staff) [data-responsive-eq="wrapped"] .eq-responsive-group { flex: var(--group-bands) 0 var(--group-min-width); }
body:not(.support-staff) .eq-row-labels-continuation { position: absolute; left: 0; width: var(--eq-row-label-width, 50px); pointer-events: none; }
body:not(.support-staff) .channel-strip { grid-template-columns: repeat(var(--channel-columns, 7), minmax(0, 1fr)); height: auto; min-height: min-content; align-items: stretch; overflow: visible; gap: 4px; }
body:not(.support-staff) .channel-card { container-type: inline-size; height: auto; padding: 0 3px 4px; overflow: visible; }
body:not(.support-staff) .channel-card-header { height: 30px; min-height: 30px; flex-wrap: nowrap; gap: 3px; padding-block: 2px; }
body:not(.support-staff) .channel-header-tools { flex: none; gap: 3px; }
body:not(.support-staff) .channel-link-button { width: clamp(16px, 14cqw, 24px); height: clamp(16px, 14cqw, 24px); padding: 1px; }
body:not(.support-staff) .channel-link-button svg { width: 100%; height: 100%; }
body:not(.support-staff) .channel-link-button b { right: -2px; bottom: -2px; width: 11px; height: 11px; }
body:not(.support-staff) :is(.channel-title, .channel-heading) { min-width: 0; height: auto; flex-wrap: nowrap; align-items: center; gap: 3px; white-space: nowrap; }
body:not(.support-staff) :is(.channel-select, .channel-name) { height: 25px; }
body:not(.support-staff) :is(.channel-select strong, .channel-heading strong) { font-size: clamp(10px, calc(8cqw + 4px), 15px); }
body:not(.support-staff) .channel-name { min-width: 0; max-width: 100%; font-size: clamp(10px, 8cqw, 12px); text-overflow: ellipsis; white-space: nowrap; }
body:not(.support-staff) .master-card .channel-heading { gap: 0; align-items: flex-start; }
body:not(.support-staff) .channel-heading small { font-size: 9px; line-height: 10px; }
body:not(.support-staff) :is(.channel-body, .master-body) { grid-template-columns: var(--channel-level-width, 20px) minmax(0, 1fr); gap: var(--channel-body-gap, 4px); padding-top: 4px; }
body:not(.support-staff) :is(.channel-level-column, .master-level-column) { grid-template-columns: 12px 6px; column-gap: 2px; height: 100%; min-height: 104px; }
body:not(.support-staff) :is(.channel-gain-slider, .master-volume-slider) { width: 12px; height: 100%; min-height: 104px; }
body:not(.support-staff) .meter { height: 100%; min-height: 104px; }
body:not(.support-staff) .meter i { width: 6px; height: auto; flex: 1; margin-top: 2px; }
body:not(.support-staff) :is(.channel-fields, .master-fields) { grid-template-rows: none; grid-auto-rows: auto; gap: var(--channel-row-gap); font-size: var(--channel-field-font-size, 12px); }
body:not(.support-staff) :is(.channel-actions, .master-actions) { height: auto; min-height: 0; margin: 0; padding: 0; gap: 3px; }
body:not(.support-staff) .master-actions { grid-template-rows: repeat(2, auto); }
body:not(.support-staff) :is(.channel-fields .channel-actions button, .master-actions button) { height: var(--channel-control-height, 28px); min-height: 22px; padding: 0 1px; font-size: var(--channel-field-font-size, 12px); white-space: nowrap; line-height: 1.2; }
body:not(.support-staff) :is(.channel-field-row, .master-field-row) { min-width: var(--channel-row-min-width, 0px); grid-template-columns: var(--channel-label-width, 30px) minmax(0, 1fr); gap: var(--channel-field-gap, 5px); font-size: var(--channel-field-font-size, 12px); line-height: 1.2; white-space: nowrap; }
body:not(.support-staff) :is(.channel-input-with-unit, .master-input-with-unit) { grid-template-columns: minmax(var(--channel-control-min-width, 0px), 1fr) var(--channel-unit-width, 20px); gap: var(--channel-unit-gap, 4px); }
body:not(.support-staff) :is(.channel-field-row, .master-field-row) :is(input, select, .phase-toggle) { height: var(--channel-control-height, 28px); min-height: 0; padding: 0 var(--channel-input-padding, 6px); font-size: inherit; line-height: 1.2; white-space: nowrap; overflow-wrap: normal; }
body:not(.support-staff) .master-delay-unit select { padding-right: calc(var(--channel-input-padding, 6px) + 11px); }
body:not(.support-staff) .master-input-with-unit input { appearance: textfield; }
body:not(.support-staff) .master-input-with-unit input::-webkit-inner-spin-button,
body:not(.support-staff) .master-input-with-unit input::-webkit-outer-spin-button { margin: 0; appearance: none; }
body:not(.support-staff) :is(.channel-field-row, .master-field-row) small { font-size: 10px; white-space: nowrap; }
body:not(.support-staff) .master-delay-label { height: auto; grid-template-rows: repeat(2, auto); row-gap: 0; font-size: inherit; line-height: 1.1; }
body:not(.support-staff) .master-delay-label > span { height: auto; line-height: inherit; }
body:not(.support-staff) [data-responsive-ticks="medium"] .response-frequency-scale span:nth-child(even) { visibility: hidden; }
body:not(.support-staff) [data-responsive-ticks="few"] .chart-band-node text { visibility: hidden; }
body:not(.support-staff) [data-responsive-ticks="few"] .response-frequency-scale span:nth-child(3n + 2),
body:not(.support-staff) [data-responsive-ticks="few"] .response-frequency-scale span:nth-child(3n + 3) { visibility: hidden; }
@media (max-width: 1159px) { body:not(.support-staff) .app-shell { --eq-preferred-slider-height: clamp(52px, calc(20dvh - 78px), 90px); } }
/* Recover sidebar whitespace on shorter desktops without shrinking its controls. */
@media (min-width: 851px) and (max-height: 800px) {
  body:not(.support-staff) .left-rail > .panel { padding-block: 4px; }
  body:not(.support-staff) .crossover-columns label { gap: 3px; }
  body:not(.support-staff) :is(.two-column-buttons, .preset-grid) { gap: 4px 8px; margin-top: 6px; }
}
@media (max-width: 850px) {
  body:not(.support-staff) .app-shell { height: auto; min-height: 100dvh; }
  body:not(.support-staff) .home-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  body:not(.support-staff) .main-stage { grid-row: 1; height: auto; }
  body:not(.support-staff) .left-rail { grid-row: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); max-height: none; overflow: visible; }
}
@media (max-width: 600px) {
  body:not(.support-staff) .titlebar { padding-inline: 8px; }
  body:not(.support-staff) .brand strong { font-size: 17px; }
  body:not(.support-staff) .brand span { font-size: 11px; }
  body:not(.support-staff) .response-tools { flex-basis: 100%; }
  body:not(.support-staff) .selected-band-readout { justify-content: flex-start; }
}
@media (max-width: 680px) {
  body:not(.support-staff) .titlebar { grid-template-columns: minmax(0, 1fr); }
  body:not(.support-staff) .header-actions { grid-area: 3 / 1; }
}
body:not(.support-staff) dialog { min-width: 0; max-width: calc(100vw - 2em); max-height: calc(100vh - 2em); max-height: calc(100dvh - 2em); }
body:not(.support-staff) .communication-dialog { max-width: calc(100% - 2em); }
body:not(.support-staff) dialog :is(.copy-eq-dialog-card, .device-dialog-card, .vehicle-card, .user-center-card, .mixer-dialog-card) { max-width: 100%; }

/* Staff mirror keeps the original 31-column layout and original inline indices. */
body.support-staff .eq-responsive-group { display: contents; }
body.support-staff .eq-row-labels-continuation { display: none; }

body:not(.support-staff) .is-graphic-mode .eq-row-labels > :nth-child(3) { visibility: hidden; height: 0; padding: 0; border: 0; overflow: hidden; }

body:not(.support-staff) .response-frequency-scale { inset: auto 0 0; height: 18px; }
body:not(.support-staff) .response-db-scale { height: var(--responsive-plot-height, calc(100% - 18px)); }
body:not(.support-staff) .response-channel-rail { height: var(--responsive-plot-height, calc(100% - 18px)); }
@container (max-width: 1000px) {
  body:not(.support-staff) .eq-header .selected-band-readout { flex-basis: 100%; justify-content: flex-start; }
  body:not(.support-staff) .eq-header .selected-range-summary { flex: 0 0 100%; margin: 0; justify-content: flex-start; text-align: left; }
}

/* The watermark shares the plot cell, so a wrapped toolbar can never cover it. */
body:not(.support-staff) .response-panel > .response-header { grid-area: 1 / 1; }
body:not(.support-staff) .response-panel > .response-body { grid-area: 2 / 1; }
body:not(.support-staff) .response-panel > .channel-watermark { position: relative; inset: auto; grid-area: 2 / 1; align-self: start; justify-self: start; margin: 10px 0 0 62px; }

/* A narrow EQ can wrap while the response plot keeps usable hit targets.
   Only this plot scrolls horizontally; SVG coordinates remain unchanged. */
body:not(.support-staff) .response-chart-scroll { overflow-x: auto; overflow-y: hidden; }
body:not(.support-staff) .response-chart-scroll > :is(.response-chart, .response-frequency-scale) { min-width: var(--responsive-chart-min-width, 0px); }

body:not(.support-staff) .response-chart-scroll > .response-logo-watermark { width: 100%; height: 100%; }
