.header-business {
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-business button {
  border: 1px solid rgba(255, 255, 255, .28);
  background: #11131a;
  color: #fff;
  padding: 7px 9px;
  font: 950 8px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
  white-space: nowrap;
  cursor: pointer;
}

.header-business button:hover,
.header-business button:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
  outline: none;
}

.selector-layout,
.tile-rail,
.active-stage {
  min-height: 0;
  overflow: hidden;
}

.tile-rail,
.active-stage {
  height: 100%;
}

.machine-showcase {
  width: clamp(118px, 20%, 170px);
  max-height: calc(100% - 68px);
  aspect-ratio: 33 / 40;
}

.machine-showcase video {
  object-fit: contain;
  background: #090a0e;
}

@media (orientation: portrait) {
  body {
    grid-template-rows: 82px minmax(0, 1fr) clamp(76px, 10dvh, 94px);
  }

  .topbar {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-rows: 38px 32px;
    align-content: center;
    padding: 5px 8px;
    gap: 2px 5px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    font-size: 16px;
  }

  .header-admin {
    grid-column: 2;
    grid-row: 1;
  }

  .header-business {
    grid-column: 1 / 4;
    grid-row: 2;
  }

  .header-business button {
    padding: 6px;
    font-size: 6px;
  }

  .top-actions {
    grid-column: 4;
    grid-row: 1 / 3;
  }

  .machine-showcase {
    width: clamp(100px, 29%, 132px);
    max-height: calc(100% - 58px);
    aspect-ratio: 33 / 40;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .header-business button {
    padding: 5px 6px;
    font-size: 6px;
  }

  .machine-showcase {
    width: clamp(92px, 16%, 125px);
    max-height: calc(100% - 48px);
  }
}
