/* Compact, readable navigation for the 1181px terminal view. */
@media (max-width: 1350px) {
  .shell {
    grid-template-columns: 184px minmax(0, 1fr);
  }

  .rail {
    padding: 14px 0 12px;
  }

  .rail .mark {
    gap: 2px;
    padding: 0 0 12px 4px;
  }

  .rail .mark .t,
  .railitem > span:first-child,
  .rail-group,
  .rail-origin {
    display: block;
  }

  .rail .mark .t {
    font-size: 14.5px;
    white-space: nowrap;
  }

  .rail .mark small {
    display: none;
  }

  /* The menu's items, headings, counts and fold arrows are drawn by js/suite-nav.js, one rail on every page, with
   * the narrow-rail sizes in its own 1350 px rule. */

  .rail .divider {
    margin: 8px 12px;
  }

  .rail-origin {
    padding: 0 12px;
  }

  .rail-origin .o {
    gap: 5px;
    margin-bottom: 4px;
    font-size: 12.5px;
  }

  .topbar {
    gap: 6px;
    padding: 0 12px;
  }

  .topbar .search {
    flex: 1 1 150px;
    min-width: 120px;
  }

  .topbar .topsel {
    gap: 6px;
  }

  .topbar .topsel select[aria-label="Manager"] {
    width: 112px;
  }

  .topbar .topsel select[aria-label="Fund"] {
    width: 190px;
  }

  .topbar .asof {
    font-size: 12.5px;
  }

  .topbar > .btn,
  .topbar > button {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12.5px;
  }

  /* 1181px: the search gives width to the manager and fund pickers */
  .topbar .search {
    flex: 0 1 230px;
  }

  .topbar .topsel,
  .topbar .topsel .f {
    flex: none;
  }

  .topbar .mpick-btn {
    width: 170px;
    flex: none;
  }

  .topbar .topsel select {
    width: 190px;
    max-width: 190px;
    flex: none;
  }

  /* 2026-09-26: with 13 px controls the top bar ran 17 px past the window and cut the Export button;
   * narrower pickers, gaps and button padding keep every control inside 1181 px. */
  .topbar {
    gap: 4px;
  }

  .topbar > .btn,
  .topbar > button {
    padding-left: 7px;
    padding-right: 7px;
  }

  .topbar .mpick-btn {
    width: 150px;
  }

  .topbar .topsel select {
    width: 170px;
    max-width: 170px;
  }
}

/* Rail width floor (Moses, 2026-10-02): the compact rail never squeezes below its 184px track. */
@media (max-width: 1350px) {
  .rail {
    min-width: 184px;
  }
}
