/* R166: keep primary navigation legible and single-line on tablet-sized screens. */
@media (min-width: 761px) and (max-width: 1100px) {
  .topbar {
    grid-template-columns: minmax(190px, 210px) minmax(0, 1fr) auto;
  }

  .brand {
    min-width: 0;
    padding-left: 12px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy b,
  .brand-copy small {
    white-space: nowrap;
  }

  .brand-copy b {
    font-size: 13px;
    letter-spacing: -0.045em;
  }

  .nav {
    min-width: 0;
    justify-content: space-evenly;
    gap: 0;
    padding: 6px 2px;
    overflow: hidden;
  }

  .nav button {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 6px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .system {
    gap: 8px;
    padding-inline: 10px;
    font-size: 10px;
    white-space: nowrap;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .topbar {
    grid-template-columns: 178px minmax(0, 1fr);
  }

  .brand {
    gap: 8px;
    padding-left: 8px;
  }

  .brand .logo {
    width: 32px;
    height: 32px;
  }

  .brand-copy b {
    font-size: 12px;
  }

  .system {
    display: none;
  }

  .nav {
    justify-content: space-between;
  }

  .nav button {
    padding-inline: 4px;
    font-size: 12px;
  }
}

/* Keep state transitions limited to properties that actually change. */
.risk-step {
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.install-hint {
  transition: transform 0.25s ease, opacity 0.25s ease;
}
