/*
 * Bottom bar on computers, from 1100 px (redesign 2026-11, as in the
 * approved mockup "Main": one thin status line). Same controls as before,
 * on one row: Mixer · Device (with its info) · Master fader, value, meter
 * and peak · System meter (with its info) · zoom · settings. Only the dB
 * scale under the meter is left out on this row; the meter, the peak and
 * the value stay. Tablets and phones keep their own layout.
 */

@media (min-width: 1100px) {
  html body .room-footer {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0.3rem 0.45rem !important;
    grid-template-columns: none !important;
  }

  html body .room-footer .footer-capture {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    gap: 0.45rem !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
  }

  html body .room-footer .footer-capture > * {
    min-height: 0 !important;
    margin: 0 !important;
  }

  html body .room-footer #mixerBtn {
    flex: 0 0 auto !important;
    flex-direction: row !important;
    gap: 0.35rem !important;
    width: auto !important;
    height: 2.15rem !important;
    min-height: 0 !important;
    padding: 0 0.6rem !important;
  }

  html body .room-footer .footer-io,
  html body .room-footer .footer-system,
  html body .room-footer .master-vu {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    height: 2.15rem !important;
    padding: 0 0.55rem !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
  }

  /* Order as in the mockup: device and system first, master on the right. */
  html body .room-footer #mixerBtn { order: 0; }
  html body .room-footer .footer-io { order: 1; }
  html body .room-footer .footer-system { order: 2; }
  html body .room-footer .master-vu { order: 3; }

  html body .room-footer .footer-io {
    flex: 0 1 17rem !important;
    min-width: 8rem !important;
  }

  html body .room-footer .footer-box-head {
    display: contents !important;
  }

  html body .room-footer .footer-box-title {
    flex: 0 0 auto;
    order: 0;
  }

  html body .room-footer .footer-info-wrap {
    flex: 0 0 auto;
    order: 3;
  }

  /* The device details open towards the arrange, never off the left edge. */
  html body .room-footer .footer-io .footer-info-popover {
    right: auto !important;
    left: -9rem !important;
  }

  html body .room-footer .footer-device-row {
    display: block !important;
    flex: 1 1 auto;
    order: 1;
    min-width: 0;
  }

  html body .room-footer .footer-device-row select {
    width: 100% !important;
    height: 1.7rem !important;
    min-height: 0 !important;
    font-size: 0.75rem !important;
  }

  html body .room-footer .master-vu {
    flex: 1 1 18rem !important;
    min-width: 10rem !important;
  }

  html body .room-footer .master-vu #masterVolumeInput {
    flex: 0 1 7.5rem !important;
    width: 7.5rem !important;
    min-width: 4rem !important;
  }

  html body .room-footer .master-vu .meter-label {
    flex: 0 0 auto !important;
    min-width: 2.6rem !important;
  }

  html body .room-footer .master-vu .master-vu-meter {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    gap: 2px !important;
    min-width: 4rem !important;
    height: auto !important;
  }

  html body .room-footer .master-vu .master-vu-meter > span {
    height: 4px !important;
    min-height: 0 !important;
  }

  html body .room-footer .master-vu .vu-db-scale {
    display: none !important;
  }

  html body .room-footer .master-vu #masterOutputPeak {
    position: static !important;
    flex: 0 0 auto !important;
  }

  html body .room-footer .footer-system {
    flex: 0 1 13rem !important;
    min-width: 6.5rem !important;
  }

  html body .room-footer .performance-meter-stack {
    display: flex !important;
    flex: 1 1 auto;
    order: 1;
    align-items: center !important;
    gap: 0.4rem !important;
    min-width: 0;
    grid-template-rows: none !important;
  }

  html body .room-footer .performance-meter {
    flex: 1 1 auto;
    min-width: 2.5rem;
  }

  html body .room-footer .performance-meter-label {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html body .room-footer .footer-utility {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 0.35rem !important;
    min-height: 0 !important;
    height: auto !important;
    grid-template-columns: none !important;
  }

  html body .room-footer .footer-zoom {
    display: flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    min-height: 0 !important;
    height: 2.15rem !important;
    padding: 0 0.3rem !important;
    grid-template-columns: none !important;
  }

  html body .room-footer .footer-settings {
    display: flex !important;
    align-items: center !important;
    min-height: 0 !important;
    height: auto !important;
  }
}

@media (min-width: 1100px) and (max-width: 1359px) {
  html body .room-footer .performance-meter-label,
  html body .room-footer .footer-io .footer-box-title {
    display: none !important;
  }

  html body .room-footer .master-vu #masterVolumeInput {
    flex-basis: 5rem !important;
    width: 5rem !important;
  }

  html body .room-footer .master-vu .master-vu-meter {
    min-width: 2.5rem !important;
  }

  html body .room-footer .master-vu {
    gap: 0.35rem !important;
    padding: 0 0.45rem !important;
  }
}

@media (min-width: 1100px) and (max-width: 1239px) {
  html body .room-footer .footer-system .footer-box-title {
    display: none !important;
  }

  html body .room-footer .footer-system {
    flex-basis: 6rem !important;
    min-width: 5rem !important;
  }

  html body .room-footer .master-vu #masterVolumeInput {
    flex-basis: 4rem !important;
    width: 4rem !important;
    min-width: 3rem !important;
  }

  html body .room-footer .master-vu .master-vu-meter {
    min-width: 2.5rem !important;
  }

  html body .room-footer .master-vu {
    min-width: 8.5rem !important;
  }

  /* Zoom to fit keeps its icon and tooltip. */
  html body .room-footer #zoomFitBtn > span {
    display: none !important;
  }

  html body .room-footer #zoomFitBtn {
    width: 1.75rem !important;
    min-width: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
  }
}
