/* Finance owner home only: use the shared header grid on desktop. */
@media screen and (min-width: 1100px) {
  #app:has(> #main-screen:not([hidden]) > #views > #view-home.active.vx17-owner) {
    max-width: 1600px;
    padding-inline: clamp(17px, 4vw, 44px);
  }

  #views:has(> #view-home.active.vx17-owner) { padding-inline: 0; }
  #main-screen:has(> #views > #view-home.active.vx17-owner) > #month-nav {
    padding-inline: 0;
    margin-bottom: .4rem;
  }

  #view-home.active.vx17-owner .vx17-summary,
  #view-home.active.vx17-owner .vx17-home-actions { margin-bottom: 1.05rem; }

  #view-home.active.vx17-owner .vx17-figures {
    gap: .9rem;
    margin-bottom: .55rem;
  }
  #view-home.active.vx17-owner .vx17-figure { padding: .95rem 1rem .95rem 1.12rem; }
  #view-home.active.vx17-owner .vx17-figure dd { font-size: 1.6rem; }
  #view-home.active.vx17-owner .vx17-jumps { gap: .35rem 1rem; }

  /* Keep actions grouped without stretching them into full-width tiles. */
  #view-home.active.vx17-owner .vx17-home-actions {
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    align-items: center;
    gap: .65rem;
  }
  #view-home.active.vx17-owner .vx17-home-actions .block {
    width: auto;
    min-width: 0;
    padding-inline: .95rem;
  }

  /* First row: recorded inflows + work queue. Second: building performance + ledger. */
  #view-home.active.vx17-owner .vx17-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
    gap: .95rem;
  }
  #view-home.active.vx17-owner .vx17-grid > .vx17-panel { padding: 1rem 1.1rem; }
  #view-home.active.vx17-owner #vx17-buildings #building-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
  }
  #view-home.active.vx17-owner #vx17-open-trip { width: auto; padding-inline: .9rem; }
  #view-home.active.vx17-owner .vx17-summary h1 { font-size: 3.4rem; }
  #view-home.active.vx17-owner:has(#vx17-payouts:not([hidden])) .vx17-grid {
    grid-template-rows: max-content auto max-content;
  }
  #view-home.active.vx17-owner:has(#vx17-payouts:not([hidden])) #vx17-trend { grid-area: 1 / 1; }
  #view-home.active.vx17-owner:has(#vx17-payouts:not([hidden])) #vx17-needs { grid-area: 1 / 2 / 3; }
  #view-home.active.vx17-owner:has(#vx17-payouts:not([hidden])) #vx17-buildings { grid-area: 2 / 1 / 4; }
  #view-home.active.vx17-owner:has(#vx17-payouts:not([hidden])) #vx17-payouts { grid-area: 3 / 2; }

}
