/* Compact desktop circuit: up to nine steps remain inside one viewport. */
.event-settings-tabs > .rt-instructions-admin-open {
  display: none !important;
}

.event-settings-tabs > .event-settings-instructions-button {
  white-space: nowrap;
}

@media (min-width: 1001px) {
  .rt-instructions-screen.rt-desktop-compact {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(.5rem, 1.2vh, .85rem);
    height: calc(100dvh - var(--rt-header-height, 66px));
    min-height: 0;
    padding:
      clamp(.85rem, 1.8vh, 1.35rem)
      clamp(1.4rem, 3.2vw, 3.2rem)
      clamp(.7rem, 1.4vh, 1rem);
    overflow: hidden;
  }

  .rt-instructions-screen.rt-desktop-compact .rt-instructions-heading {
    width: min(100%, 1380px);
    margin: 0 auto;
  }

  .rt-instructions-screen.rt-desktop-compact .rt-instructions-heading h1 {
    font-size: clamp(2.35rem, 5.4vh, 3.75rem);
    line-height: .94;
  }

  .rt-instructions-screen.rt-desktop-compact .rt-instructions-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows:
      repeat(var(--rt-instruction-rows, 2), minmax(0, 1fr));
    gap:
      clamp(1.35rem, 3.4vh, 2.5rem)
      clamp(1.25rem, 4vw, 4rem);
    width: min(100%, 1380px);
    height: 100%;
    min-height: 0;
    margin: 0 auto;
  }

  .rt-instructions-screen.rt-desktop-compact .rt-instruction-card,
  .rt-instructions-screen.rt-desktop-compact
    .rt-instruction-card:nth-child(n) {
    min-height: 0;
    height: auto;
    padding: clamp(.75rem, 1.55vw, 1.15rem);
    border-radius: clamp(.85rem, 1.5vw, 1.3rem);
  }

  .rt-instructions-screen.rt-desktop-compact
    .rt-instruction-card:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .rt-instructions-screen.rt-desktop-compact
    .rt-instruction-card:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .rt-instructions-screen.rt-desktop-compact
    .rt-instruction-card:nth-of-type(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .rt-instructions-screen.rt-desktop-compact
    .rt-instruction-card:nth-of-type(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .rt-instructions-screen.rt-desktop-compact
    .rt-instruction-card:nth-of-type(5) {
    grid-column: 2;
    grid-row: 2;
  }

  .rt-instructions-screen.rt-desktop-compact
    .rt-instruction-card:nth-of-type(6) {
    grid-column: 1;
    grid-row: 2;
  }

  .rt-instructions-screen.rt-desktop-compact
    .rt-instruction-card:nth-of-type(7) {
    grid-column: 1;
    grid-row: 3;
  }

  .rt-instructions-screen.rt-desktop-compact
    .rt-instruction-card:nth-of-type(8) {
    grid-column: 2;
    grid-row: 3;
  }

  .rt-instructions-screen.rt-desktop-compact
    .rt-instruction-card:nth-of-type(9) {
    grid-column: 3;
    grid-row: 3;
  }

  .rt-instructions-screen.rt-desktop-compact .rt-instruction-number {
    font-size: clamp(1.55rem, 2.1vw, 2.05rem);
  }

  .rt-instructions-screen.rt-desktop-compact .rt-instruction-text {
    font-size: clamp(.88rem, 1.22vw, 1.16rem);
    line-height: 1.16;
  }

  .rt-instructions-screen.rt-desktop-compact .rt-instructions-back {
    width: 40px;
    min-height: 40px;
    height: 40px;
    margin: 0 auto;
    font-size: 1.25rem;
  }
}
