/* MARFA Preview | Desktop sidebar content-width repair | 2026-10-28.
 * Scope: desktop only. Preserve selected glass/3D palette, app routing,
 * all features and financial data. In compact mode the 70px navigation rail
 * must replace the legacy 220/240px grid reservation rather than merely shrink.
 * Works with both RTL and LTR document direction.
 */
@media (min-width:1181px) {
  html[dir] body.v7-ui #app#app.app.marfa-converted.marfa-side-compact {
    display:grid!important;
    grid-template-columns:70px minmax(0,1fr)!important;
    grid-auto-rows:auto!important;
    width:100%!important;
    max-width:100%!important;
  }
  html[dir] body.v7-ui #app#app.app.marfa-converted.marfa-side-compact > main.main {
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    margin-left:0!important;
    margin-right:0!important;
    justify-self:stretch!important;
    align-self:start!important;
  }
  html[dir="rtl"] body.v7-ui #app#app.app.marfa-converted.marfa-side-compact > aside.side {
    position:fixed!important;
    right:0!important;
    left:auto!important;
    width:70px!important;
    max-width:70px!important;
    min-width:70px!important;
  }
  html[dir="ltr"] body.v7-ui #app#app.app.marfa-converted.marfa-side-compact > aside.side {
    position:fixed!important;
    left:0!important;
    right:auto!important;
    width:70px!important;
    max-width:70px!important;
    min-width:70px!important;
  }
  /* Old per-view limits made screens wider without widening their actual data. */
  html[dir] body.v7-ui #app#app.app.marfa-converted.marfa-side-compact > main.main > section.view {
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-inline:0!important;
  }
  html[dir] body.v7-ui #app#app.app.marfa-converted.marfa-side-compact #dashboard #dv3 {
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
  /* Make large data panels track their host, without altering their chart APIs. */
  html[dir] body.v7-ui #app#app.app.marfa-converted.marfa-side-compact :is(
    #live #mrWrapper,#live #mrGrid,#signals .connected-grid,
    #signals .connected-table-wrap
  ){
    min-width:0!important;
    max-width:100%!important;
  }
}
