/* MYVOX MOBILE REFLOW v8.3 — phone/tablet-portrait only.
 * Desktop reference faceplate and native DSP bindings remain untouched.
 * Replaces the former 900px-wide horizontal-scroll faceplate on phones.
 */
@media (max-width:700px) {
  #modalBackdrop[data-presentation="plugin"]:has(.bzdr-stock-editor[data-processor="myvox"]) {
    padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right))
            max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left)) !important;
  }
  #modalBackdrop[data-presentation="plugin"]:has(.bzdr-stock-editor[data-processor="myvox"]) .modal {
    height:100%;
    max-height:100%;
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    border-radius:9px;
  }
  #modalBackdrop:has(.bzdr-stock-editor[data-processor="myvox"]) #modalContent {width:100%;min-width:0;}
  .bzdr-stock-editor[data-processor="myvox"] {
    width:100%;
    max-width:100%;
    min-width:0;
    margin:0;
    container-type:inline-size;
    overflow-x:clip;
  }
  .bzdr-stock-editor[data-processor="myvox"] .bzdr-stock-head {
    box-sizing:border-box;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:flex-start;
    gap:8px 10px;
    width:100%;
    height:auto;
    min-height:0;
    grid-template-columns:none;
    padding:10px 50px 10px 12px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .bzdr-brand-lockup {order:0;flex:1 1 125px;min-width:0;gap:6px;}
  .bzdr-stock-editor[data-processor="myvox"] .bzdr-brand-lockup>b {font-size:11px;}
  .bzdr-stock-editor[data-processor="myvox"] .bzdr-stock-effect {font-size:clamp(20px,6vw,28px);}
  .bzdr-stock-editor[data-processor="myvox"] .bzdr-stock-compare {order:1;flex:0 0 65px;width:65px;min-height:34px;}
  .bzdr-stock-editor[data-processor="myvox"] .bzdr-stock-compare button {min-height:34px;font-size:13px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-menu-button {order:2;min-width:35px;min-height:38px;font-size:21px;justify-self:auto;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-master-power {order:3;min-width:36px;min-height:36px;width:36px;height:36px;justify-self:auto;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-edition {display:none;}
  .bzdr-stock-editor[data-processor="myvox"] .bzdr-preset-rail {
    order:4;flex:1 0 100%;max-width:100%;min-width:0;
    height:42px;min-height:42px;
    display:grid;grid-template-columns:40px minmax(0,1fr) 40px 36px;
    gap:0;
  }
  .bzdr-stock-editor[data-processor="myvox"] .bzdr-preset-rail>select,
  .bzdr-stock-editor[data-processor="myvox"] .bzdr-preset-rail>button {
    box-sizing:border-box;
    font-size:13px;
    height:40px;
    min-height:40px;
    width:100%;
    padding:0 3px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .bzdr-preset-rail #bzdrPresetSave {
    position:static;
    right:auto;
    top:auto;
    width:36px;
    height:40px;
    font-size:19px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .bzdr-preset-editor {
    position:absolute;z-index:60;
    top:calc(100% + 4px);right:0;
    width:min(290px,calc(100vw - 44px));
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-menu-panel {padding:12px;max-width:100%;overflow-x:hidden;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-menu-presets {flex-wrap:wrap;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-menu-presets button {flex:1 1 90px;min-height:42px;font-size:12px;}
  .bzdr-stock-editor[data-processor="myvox"] .bzdr-faceplate-body {
    min-width:0;
    width:100%;
    max-width:100%;
    overflow:visible;
    padding:8px 7px 14px;
    -webkit-overflow-scrolling:auto;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-reference-layout {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    width:100% !important;
    max-width:100% !important;
    min-width:0;
    gap:10px;
    font-size:13px;
    container-type:normal !important;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-primary-grid {
    width:100%;
    min-width:0;
    height:auto;
    min-height:0;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto;
    gap:10px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-primary-grid>aside,
  .bzdr-stock-editor[data-processor="myvox"] .myvox-eq-panel,
  .bzdr-stock-editor[data-processor="myvox"] .myvox-pitch-panel {
    min-width:0;
    width:100%;
    max-width:100%;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-primary-grid h3,
  .bzdr-stock-editor[data-processor="myvox"] .myvox-pitch-panel h3 {
    font-size:17px;
    white-space:normal;
    line-height:1.2;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-tune-panel {
    display:flex;
    flex-direction:column;
    height:auto;
    min-height:0;
    grid-template-rows:none;
    gap:12px;
    padding:12px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-tune-panel>header,
  .bzdr-stock-editor[data-processor="myvox"] .myvox-io-panel>header {
    margin:0;
    min-height:38px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-tune-controls {
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:none;
    align-items:center;
    gap:10px 14px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-tune-future {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin:0;
    align-items:start;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-unavailable {gap:5px;font-size:12px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-unavailable label {white-space:normal;text-align:center;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-tune-future .myvox-placeholder-dial {width:45px;height:45px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-supported-mode .bzdr-stock-control select {font-size:12px;min-height:44px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-supported-mode .bzdr-stock-control label {font-size:12px;white-space:normal;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-scale {
    margin-top:0;padding-top:11px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-smallhead {font-size:12px;margin:0 0 9px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-keyboard {height:56px;margin-bottom:16px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-keyboard span {font-size:9px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-keyboard span:after {font-size:10px;top:calc(100% + 5px);}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-eq-panel {
    display:grid;
    grid-template-rows:auto 208px auto;
    gap:8px;
    padding:9px 8px 11px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-eq-panel>header {
    flex-wrap:wrap;justify-content:space-between;gap:8px;
    min-height:42px;padding:0 2px 8px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-eq-panel h3 {font-size:15px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-eq-switch {
    flex-wrap:nowrap;max-width:100%;gap:2px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-eq-switch button,
  .bzdr-stock-editor[data-processor="myvox"] .myvox-pitch-switch button {
    font-size:12px;
    min-width:0;
    min-height:38px;
    padding:6px 9px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-chart {height:208px;margin:0;min-height:0;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-eq-under {padding:10px 6px;min-height:0;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-eq-strip {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto;
    gap:12px;
    min-height:0;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-band-picker {padding:0;gap:10px;min-height:40px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-band-dot {width:10px;height:10px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-band-picker select {
    width:100%;max-width:100%;min-height:40px;font-size:13px;padding:7px 10px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-selected-controls {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    padding:0;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-dynamic-controls {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;
    border-left:0;
    border-top:1px solid #49555d;
    padding:10px 0 0;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-dynamic-control {gap:5px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-dynamic-control label,
  .bzdr-stock-editor[data-processor="myvox"] .myvox-dynamic-control output {font-size:11px;min-width:0;padding:2px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-dynamic-dial {width:44px;height:44px;max-width:100%;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-dynamic-dial i {inset:5px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-dynamic-controls .myvox-switch {
    width:49px;height:27px;min-height:27px;margin:7px 0;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-dynamic-controls .myvox-switch span {width:20px;height:20px;margin:2px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-dynamic-controls .myvox-switch[aria-pressed="true"] span {transform:translateX(20px);}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-dynamic-controls .myvox-solo {width:44px;height:44px;font-size:19px!important;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-more {
    font-size:11px;
    line-height:1.45;
    margin:10px 2px 2px;
    text-align:left;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-all-eq-controls {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px 0;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-io-panel {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(100px,40%);
    grid-template-rows:auto auto;
    gap:8px;
    align-items:center;
    padding:12px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-io-panel>header {grid-column:1/-1;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-io-panel .myvox-power {width:36px;height:36px;font-size:21px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-meter-pair {
    display:flex;justify-content:space-evenly;
    width:100%;height:150px;min-height:0;
    padding:7px 18px;
    gap:24px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-meter-track {gap:5px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-meter-track strong {font-size:12px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-meter-tower {min-height:90px;height:106px;width:22px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-meter-scale {top:25px;bottom:14px;left:-20px;font-size:8px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-meter-track:last-child .myvox-meter-scale {right:-20px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-meter-track output {font-size:9px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-output-control {margin:0;padding:0 0 0 7px;border-top:0;border-left:1px solid #52606b;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-output-control .bzdr-param-dial {width:54px;height:54px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-pitch-panel {
    display:grid;
    grid-template-rows:auto 180px;
    padding:8px;
    gap:8px;
    min-height:0;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-pitch-panel>header {
    display:flex;flex-wrap:wrap;gap:7px;
    padding:0 3px 8px;
    justify-content:space-between;
    min-height:48px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-pitch-panel h3 {font-size:15px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-pitch-key {
    width:100%;margin-left:0;justify-content:flex-start;
    gap:16px;flex-wrap:wrap;font-size:11px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-pitch-key span {gap:5px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-pitch-key span:before {width:23px;height:3px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-pitch-key .myvox-target-key:before {height:8px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-pitch-canvas {height:180px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-pitch-overlay,
  .bzdr-stock-editor[data-processor="myvox"] .myvox-pitch-overlay strong {font-size:11px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-signal-flow {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    padding:7px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-signal-flow>b {display:none;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-flow-step {
    display:flex;min-height:56px;
    gap:7px;padding:7px;
    overflow:hidden;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-flow-step strong {font-size:11px;white-space:normal;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-flow-step span {font-size:10px;white-space:normal;line-height:1.3;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-flow-step .myvox-power {width:27px;height:27px;min-width:27px;min-height:27px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-wave {width:23px;height:23px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-flow-end .myvox-output-icon {font-size:24px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-beta-message {font-size:10px;line-height:1.4;padding:7px 2px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-reference-layout .bzdr-stock-control {gap:5px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-reference-layout .bzdr-stock-control label {font-size:12px;line-height:1.4;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-reference-layout .bzdr-stock-control output,
  .bzdr-stock-editor[data-processor="myvox"] .myvox-unavailable output {font-size:11px;min-height:15px;line-height:1.3;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-reference-layout .bzdr-stock-control select {
    min-width:0;max-width:100%;min-height:42px;height:42px;
    font-size:13px;padding:7px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-reference-layout .bzdr-param-dial,
  .bzdr-stock-editor[data-processor="myvox"] .myvox-placeholder-dial {
    width:44px;height:44px;
    padding:5px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-reference-layout .bzdr-param-dial-inner,
  .bzdr-stock-editor[data-processor="myvox"] .myvox-placeholder-dial i {inset:5px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-tune-controls [data-param-name="tune__amount"] .bzdr-param-dial {
    width:72px;height:72px;padding:7px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-tune-controls [data-param-name="tune__amount"] .bzdr-param-dial-inner {inset:7px;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-tune-controls [data-param-name="tune__reference"] {margin:0;}
  .bzdr-stock-editor[data-processor="myvox"] .myvox-reference-number {
    height:42px;width:100%;font-size:14px!important;padding:8px 30px 8px 8px;
  }
  .bzdr-stock-editor[data-processor="myvox"] .myvox-tune-controls [data-param-name="tune__reference"]:after {
    right:8px;bottom:11px;font-size:12px;
  }
}
